/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

a {
    color: #1a0dab;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #fff;
    border-top: 4px solid #222;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.site-title a {
    color: #111;
}

.site-title a:hover {
    text-decoration: none;
    color: #444;
}

.site-tagline {
    font-size: 0.95rem;
    color: #666;
    font-weight: bold;
}

/* Layout (Mobile First) */
.main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-content {
    width: 100%;
}

.sidebar {
    width: 100%;
}

/* Posts */
.post {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.post:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.post-link {
    display: flex;
    flex-direction: column;
    color: inherit;
}

.post-link:hover {
    text-decoration: none;
}

.post-link:hover .post-title {
    color: #1a0dab;
    text-decoration: underline;
}

.post-image {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee;
}

.post-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #111;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

.post-summary {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0;
}

/* Sidebar Widgets */
.widget {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    color: #111;
}

.about-widget p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
}

.about-widget p:last-child {
    margin-bottom: 0;
}

.link-widget ul {
    list-style: none;
}

.link-widget li {
    margin-bottom: 10px;
}

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

/* Footer */
.site-footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* Desktop & Tablet Overlay (Min-Width: 768px) */
@media (min-width: 768px) {
    .header-inner {
        flex-direction: row;
        align-items: baseline;
        text-align: left;
        gap: 20px;
    }

    .main-wrapper {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .main-content {
        flex: 1 1 65%;
        min-width: 0;
    }

    .sidebar {
        flex: 1 1 30%;
        min-width: 280px;
    }

    .post-image img {
        aspect-ratio: 16/9;
    }

    .post-title {
        font-size: 1.4rem;
    }
}
