:root {
    --accent-color: #14EB00;
    --text-color: #333;
    --bg-color: #fff;
    --secondary-bg: #f8f9fa;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: transform 0.2s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand h1 {
    color: #14EB00;
    font-weight: 700;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}


/* Featured Article */
.featured-article {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
}

.featured-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

/* Article Grid */
.article-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Article Item Styles */
.article-item {
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    max-width: 250px;
    margin: 0 auto;
}

.article-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 0.8rem;
}

.article-meta {
    padding: 0 0.8rem 0.8rem;
}

.category-tag {
    color: #14EB00;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.article-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 600; /* Retained from original */
}

.article-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
}

.new-badge {
    background: rgba(20, 235, 0, 0.1);
    color: #14EB00;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-summary {
    color: #666;
    margin-bottom: 1.5rem;
}

.article-item:hover {
    transform: translateY(-5px); /* Retained from original */
}


/* Search Form */
.search-form {
    max-width: 600px;
    margin: 2rem auto;
    position: relative; /* Retained from original */
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease; /* Retained from original */
}

.search-input:focus {
    border-color: var(--accent-color);
    outline: none; /* Retained from original */
}

/* Newsletter Section */
.newsletter-signup {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Retained from original */
}

.newsletter-form .input-group {
    max-width: 500px;
    margin: 0 auto;
}

/* Comments Section */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comment-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-content {
    white-space: pre-wrap; /* Retained from original */
}

/* Social Share */
.social-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    padding: 1rem; /* Retained from original */
    background-color: var(--secondary-bg); /* Retained from original */
    border-radius: 8px; /* Retained from original */
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem; /* Retained from original */
    color: white; /* Retained from original */
    border: none; /* Retained from original */
    border-radius: 4px; /* Retained from original */
    transition: opacity 0.3s ease; /* Retained from original */
}

.share-buttons .btn:hover {
    opacity: 0.9; /* Retained from original */
}

.btn-twitter {
    background-color: #1DA1F2; /* Retained from original */
}

.btn-facebook {
    background-color: #4267B2; /* Retained from original */
}

.btn-line {
    background-color: #00B900; /* Retained from original */
}

.btn-copy {
    background-color: #666; /* Retained from original */
}

@media (max-width: 576px) {
    .share-buttons {
        flex-direction: column; /* Retained from original */
    }
    .share-buttons .btn {
        width: 100%;
        justify-content: center; /* Retained from original */
    }
}

/* Ranking Page Styles */
.ranking-number {
    position: absolute;
    top: 5px;
    bottom: auto;
    left: 5px;
    right: auto;
    width: 40px;
    height: 40px;
    color: #14EB00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.9); /* 白い背景を追加 */
    border-radius: 4px; /* 角を少し丸く */
}

.article-stats {
    margin: 0.5rem 0;
    color: #666;
}

.view-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Popular Articles Section */
.popular-articles {
    background-color: rgba(20, 235, 0, 0.1);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 8px;
}

.popular-articles .article-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    position: relative;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 4px;
}

.popular-articles .article-image {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.popular-articles .article-meta {
    flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .article-image {
        width: 100%;
        height: 180px;
        margin-bottom: 1rem;
    }

    .article-meta {
        padding: 0;
    }

    .popular-articles {
        padding: 1rem;
    }

    .popular-articles .article-item {
        flex-direction: row;
        align-items: center;
    }

    .popular-articles .article-image {
        width: 120px;
        height: 80px;
        margin-bottom: 0;
    }

    .featured-article {
        height: 400px;
    }

    .featured-content {
        padding: 1.5rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-header span {
        font-size: 0.85rem;
    }
}

.article-header img {
    /* width: 90%; */
    height: auto;
    max-width: 100%;
}

.featured-article .article-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin: 0 auto;
}

.article-item .article-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
}

.container.py-4 .article-item .article-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
}

.container.py-4 .article-item {
    display: flex;
    flex-direction: column;
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    max-width: 250px;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}