:root {
    --color-primary: #c62828;
    --color-primary-dark: #9f1f1f;
    --color-bg: #f4f5f7;
    --color-surface: #ffffff;
    --color-text: #222222;
    --color-muted: #6b7280;
    --color-border: #e8e8e8;
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
    --radius: 18px;
    --container: 920px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body.site-body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background: linear-gradient(to bottom, #f8f8f9 0%, #f2f4f6 100%);
    line-height: 1.7;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    width: 64px;
    min-width: 64px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: block;
    background: #ffffff;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.3;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--color-text);
    font-weight: 600;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: #f7ecec;
    color: var(--color-primary-dark);
    text-decoration: none;
}

.site-main {
    padding: 38px 0 56px;
}

.content-card {
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 34px;
}

.content-card h1 {
    margin: 0 0 14px 0;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-primary-dark);
}

.content-card h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 700;
}

.content-card h3 {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    font-size: 1.0rem;
    line-height: 1.25;
    color: var(--color-text);
    font-weight: 400 !important;
}

.content-card h2 + h3 {
    margin-top: 0 !important;
}

.content-card h4 {
    margin: 0 0 -26px 0 !important;
    padding: 0 !important;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 700;
}

.content-card p,
.content-card ul,
.content-card ol {
    margin-top: 0;
    margin-bottom: 14px;
}

.content-card ul,
.content-card ol {
    padding-left: 20px;
}

.site-footer {
    padding: 20px 0 36px;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-intro {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 12px;
    font-size: 2.2rem;
    line-height: 1.15;
    color: var(--color-primary-dark);
}

.hero-text {
    max-width: 720px;
    font-size: 1.05rem;
    color: var(--color-muted);
}

.post-card {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin-bottom: 22px;
}

.post-card:last-child {
    margin-bottom: 0;
}

.post-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.post-meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.post-title {
    margin: 0 0 12px;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--color-text);
}

.post-text p:last-child {
    margin-bottom: 0;
}

.notice-box {
    background: #faf2f2;
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 18px 0;
}

.image-block {
    margin: 18px 0 22px;
}

.image-block img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.92rem;
    color: var(--color-muted);
}

@media (max-width: 860px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .content-card {
        padding: 24px;
        border-radius: 14px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand-logo {
        width: 54px;
        min-width: 54px;
    }

    .brand-title {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.86rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .post-card {
        padding: 18px;
    }

    .main-nav a {
        padding: 8px 12px;
    }
}
