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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333333;
    background-color: #f7f9fb;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e1e8ed;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a2a3a;
    letter-spacing: -0.5px;
}

.site-logo span {
    color: #ff5722;
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.global-nav a {
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
}

.global-nav a:hover {
    color: #ff5722;
    text-decoration: none;
}

/* Hero / Breadcrumb */
.breadcrumb {
    max-width: 1100px;
    margin: 15px auto 0;
    padding: 0 20px;
    font-size: 0.85rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 25px auto 50px;
    padding: 0 20px;
    display: flex;
    gap: 36px;
}

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

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Top Hero Section */
.top-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.top-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.top-hero p {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Card & Article List */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #ff5722;
    color: #1f2937;
}

.article-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .article-card {
        flex-direction: row;
    }
    .article-card .card-thumb {
        width: 280px;
        flex-shrink: 0;
    }
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-tag {
    display: inline-block;
    background: #eef2f6;
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.card-title a {
    color: #111827;
}

.card-title a:hover {
    color: #ff5722;
    text-decoration: none;
}

.card-desc {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-meta {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Single Post Content */
.post-container {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.post-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}

.post-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    gap: 15px;
}

.post-body h2 {
    font-size: 1.35rem;
    color: #1f2937;
    margin: 35px 0 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border-left: 5px solid #2563eb;
    border-radius: 4px;
}

.post-body h3 {
    font-size: 1.15rem;
    color: #374151;
    margin: 25px 0 12px;
    position: relative;
    padding-bottom: 6px;
    border-bottom: 2px solid #e5e7eb;
}

.post-body p {
    margin-bottom: 18px;
    color: #374151;
    line-height: 1.85;
}

.post-body ul, .post-body ol {
    margin: 15px 0 22px 24px;
    color: #374151;
}

.post-body li {
    margin-bottom: 8px;
}

.callout-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #22c55e;
    padding: 18px 20px;
    border-radius: 6px;
    margin: 25px 0;
}

.callout-title {
    font-weight: 700;
    color: #166534;
    margin-bottom: 8px;
}

.table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

table th, table td {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

table th {
    background-color: #f9fafb;
    font-weight: 700;
    color: #374151;
}

/* Sidebar Widgets */
.widget {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 8px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.profile-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    text-align: center;
}

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

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.9rem;
}

.widget-list li:last-child {
    border-bottom: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.submit-btn {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: #1d4ed8;
}

/* Footer */
.site-footer {
    background-color: #1f2937;
    color: #9ca3af;
    padding: 40px 20px 25px;
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-nav a {
    color: #d1d5db;
}

.footer-nav a:hover {
    color: #ffffff;
}

.copyright {
    color: #6b7280;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 850px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .global-nav ul {
        gap: 15px;
    }
}
