/* Blog Specific Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* General Styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
}

a {
    text-decoration: none;
    color: #333;
}

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

/* Header */
header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 30px;
}

nav a {
    font-weight: 500;
    transition: color 0.3s;
    color: #555;
}

nav a:hover {
    color: #3498db;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Blog Hero Section */
.blog-hero {
    background-color: #34495e;
    color: #fff;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.blog-hero p {
    font-size: 18px;
}

/* Blog List - Index Page */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-date {
    font-size: 14px;
    color: #3498db;
    margin-bottom: 10px;
    display: block;
}

.blog-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.blog-card-summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-card-link {
    display: inline-block;
    color: #3498db;
    font-weight: 500;
    transition: color 0.3s;
}

.blog-card-link:hover {
    color: #2980b9;
}

/* Two Column Layout for Blog Article */
.blog-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

/* Blog Article Header */
.blog-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.blog-article-date {
    font-size: 14px;
    color: #3498db;
    margin-bottom: 10px;
    display: block;
}

.blog-article-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-article-summary {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Featured Image */
.featured-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Blog Article Content */
.blog-article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.blog-article-content h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.blog-article-content h3 {
    font-size: 22px;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

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

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

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-article-content a {
    color: #3498db;
    text-decoration: underline;
}

.blog-article-content a:hover {
    color: #2980b9;
}

/* Image Caption */
.image-caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Share Buttons */
.share-buttons {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}

.share-buttons h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.share-button {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    transition: opacity 0.3s;
}

.share-button:hover {
    opacity: 0.8;
}

.share-button.twitter {
    background-color: #1DA1F2;
}

.share-button.facebook {
    background-color: #4267B2;
}

/* Sidebar Styles */
.sidebar-section {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section ul li {
    margin-bottom: 10px;
}

.sidebar-section ul li a {
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.sidebar-section ul li a:hover {
    color: #3498db;
}

/* Ad Space */
.ad-space {
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0 20px 0;
    font-size: 14px;
    margin-top: 60px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
    padding: 5px 10px;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        border-bottom: 1px solid #eee;
        padding: 20px;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    .blog-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .main-content {
        padding: 20px;
    }

    .blog-article-title {
        font-size: 28px;
    }

    .blog-article-content h2 {
        font-size: 24px;
    }

    .blog-article-content h3 {
        font-size: 20px;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .blog-article-title {
        font-size: 24px;
    }

    .share-button {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}
