* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #111827;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
}

.nav-container {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #4b5563;
    font-weight: 700;
    font-size: 14px;
}

    .main-nav a:hover {
        color: #111827;
    }

.hero-section {
    padding: 82px 0 52px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%), linear-gradient(180deg, #ffffff, #f8fafc);
}

.hero-label {
    display: inline-flex;
    padding: 8px 13px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 18px;
}

.hero-section h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    color: #111827;
}

.hero-section p {
    max-width: 660px;
    margin: 22px 0 0;
    font-size: 19px;
    line-height: 1.7;
    color: #4b5563;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    padding: 34px 0 70px;
}

.content-column {
    min-width: 0;
}

.featured-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
    margin-bottom: 36px;
}

.featured-image {
    height: 360px;
    background: #e5e7eb;
}

    .featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #2563eb);
    color: #ffffff;
    font-weight: 900;
    font-size: 28px;
}

    .image-placeholder.small {
        min-height: 190px;
        font-size: 18px;
    }

.featured-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

    .post-meta a {
        color: #2563eb;
    }

.featured-content h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
    letter-spacing: -0.05em;
    line-height: 1.04;
}

    .featured-content h2 a:hover,
    .post-card h3 a:hover {
        color: #2563eb;
    }

.featured-content p {
    margin: 16px 0 0;
    color: #4b5563;
    line-height: 1.7;
    font-size: 16px;
}

.post-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #6b7280;
    font-weight: 700;
}

    .post-footer a {
        background: #111827;
        color: #ffffff;
        padding: 12px 16px;
        border-radius: 999px;
    }

        .post-footer a:hover {
            background: #2563eb;
        }

.section-title {
    margin: 14px 0 18px;
}

    .section-title h2 {
        margin: 0;
        font-size: 30px;
        letter-spacing: -0.04em;
    }

    .section-title p {
        margin: 6px 0 0;
        color: #6b7280;
    }

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.post-image {
    height: 210px;
    background: #e5e7eb;
    display: block;
}

    .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.post-card-body {
    padding: 22px;
}

.post-card h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.post-card p {
    margin: 12px 0 0;
    color: #4b5563;
    line-height: 1.6;
}

.post-date {
    margin-top: 16px;
    color: #9ca3af;
    font-weight: 700;
    font-size: 13px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

    .side-card h3 {
        margin: 0 0 16px;
        font-size: 20px;
        letter-spacing: -0.03em;
    }

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popular-item {
    display: block;
    padding: 14px;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

    .popular-item:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
    }

    .popular-item span {
        display: block;
        font-weight: 800;
        line-height: 1.35;
    }

    .popular-item small {
        display: block;
        margin-top: 6px;
        color: #6b7280;
    }

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .category-list a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 13px 14px;
        background: #f9fafb;
        border-radius: 14px;
        font-weight: 800;
    }

        .category-list a:hover {
            background: #eff6ff;
            color: #1d4ed8;
        }

    .category-list strong {
        min-width: 28px;
        height: 28px;
        border-radius: 999px;
        background: #e5e7eb;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

.newsletter-card p {
    margin: 0 0 15px;
    color: #4b5563;
    line-height: 1.6;
}

.newsletter-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-card input {
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
}

    .newsletter-card input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

.newsletter-card button {
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

    .newsletter-card button:hover {
        background: #1d4ed8;
    }

.newsletter-message {
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
}

    .newsletter-message.success {
        background: #dcfce7;
        color: #166534;
    }

    .newsletter-message.error {
        background: #fee2e2;
        color: #991b1b;
    }

.side-empty,
.empty-state {
    color: #6b7280;
}

.empty-state {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    font-weight: 700;
}

.site-footer {
    background: #111827;
    color: #ffffff;
    padding: 42px 0 24px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 28px;
}

    .footer-grid h3 {
        margin: 0 0 10px;
        font-size: 24px;
    }

    .footer-grid p {
        max-width: 520px;
        margin: 0;
        color: #d1d5db;
        line-height: 1.7;
    }

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

    .footer-links a {
        color: #d1d5db;
        font-weight: 700;
    }

        .footer-links a:hover {
            color: #ffffff;
        }

.footer-bottom {
    padding-top: 20px;
    color: #9ca3af;
    font-size: 14px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    padding: 42px 0 70px;
}

.article-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

    .article-card h1 {
        margin: 0;
        font-size: clamp(34px, 5vw, 62px);
        line-height: 1;
        letter-spacing: -0.07em;
    }

.article-summary {
    margin: 18px 0 0;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.7;
}

.article-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 22px;
    margin: 28px 0;
}

.article-content {
    margin-top: 26px;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.9;
    white-space: pre-line;
}

.article-author {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

.category-hero {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 60px 0 34px;
}

    .category-hero span {
        color: #2563eb;
        font-weight: 900;
    }

    .category-hero h1 {
        margin: 10px 0 0;
        font-size: clamp(38px, 5vw, 64px);
        letter-spacing: -0.06em;
    }

    .category-hero p {
        margin: 12px 0 0;
        color: #6b7280;
        font-size: 18px;
    }

@media (max-width: 980px) {
    .main-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .featured-image {
        height: 260px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        height: 66px;
    }

    .hero-section {
        padding: 54px 0 32px;
    }

    .featured-content,
    .article-card {
        padding: 22px;
    }

    .post-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        display: block;
    }

    .footer-links {
        margin-top: 22px;
    }
}
.static-page {
    padding: 42px 0 70px;
}

.archive-page {
    padding: 34px 0 70px;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

    .archive-item:hover {
        border-color: #bfdbfe;
        background: #eff6ff;
    }

    .archive-item strong {
        display: block;
        color: #111827;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .archive-item span {
        display: block;
        color: #6b7280;
        font-size: 14px;
    }

    .archive-item small {
        color: #2563eb;
        font-weight: 900;
    }

@media (max-width: 640px) {
    .archive-item {
        align-items: flex-start;
        flex-direction: column;
    }
}