/* Additional CSS for LIG Blog Theme to match LIG blog design */

/* Typography Refinements */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #f8f8f8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #222;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.entry-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
    font-weight: normal;
}

/* Header Refinements */
.site-header {
    background-color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 40px;
    width: auto;
}

.site-navigation {
    display: flex;
    align-items: center;
}

.site-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
}

.site-navigation li {
    list-style: none;
    margin-left: 25px;
    position: relative;
}

.site-navigation a {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-navigation a:hover {
    color: #666;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
}

/* Search Form Refinements */
.search-form {
    position: relative;
    max-width: 300px;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    background-color: #f5f5f5;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

/* Section Headers Refinements */
.section-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: baseline;
}

/* Article Cards Refinements */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.pickup-grid {
    grid-template-columns: repeat(2, 1fr);
}

.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.article-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-categories {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    font-size: 14px;
    color: #666;
}

.article-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    color: #666;
}

.article-date {
    margin-left: auto;
    font-size: 12px;
    color: #999;
}

/* Category Labels Refinements */
.category-label {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-right: 5px;
    margin-bottom: 5px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.category-label:hover {
    opacity: 0.9;
    color: #fff;
}

/* Single Post Refinements */
.single-article {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.entry-header {
    padding: 30px 30px 20px;
}

.entry-thumbnail {
    margin-bottom: 20px;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
}

.entry-content {
    padding: 0 30px 30px;
}

.entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.entry-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.entry-tags {
    margin-bottom: 15px;
}

.tags-title {
    font-weight: 700;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
    color: #666;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.tag-link:hover {
    background-color: #eee;
}

.entry-share {
    display: flex;
    align-items: center;
}

.share-title {
    font-weight: 700;
    margin-right: 10px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-left: 5px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.share-link:hover {
    opacity: 0.9;
    color: #fff;
}

.share-link.twitter {
    background-color: #1da1f2;
}

.share-link.facebook {
    background-color: #3b5998;
}

.share-link.linkedin {
    background-color: #0077b5;
}

/* Sidebar Refinements */
.sidebar {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-widget {
    margin-bottom: 30px;
}

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

.sidebar-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sidebar-category-link {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.sidebar-category-link:hover {
    opacity: 0.9;
    color: #fff;
}

/* Footer Refinements */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-widget ul {
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #999;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 0 15px;
}

.footer-navigation li {
    list-style: none;
    margin: 0 10px;
}

.footer-navigation a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: #fff;
}

/* Content Area Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px 0;
}

.site-main {
    flex-grow: 1;
}

/* Pagination */
.posts-navigation,
.post-navigation {
    margin-bottom: 30px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    max-width: 48%;
}

.nav-previous a,
.nav-next a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Refinements */
@media (max-width: 992px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-navigation {
        margin-top: 15px;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    
    .site-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    
    .site-navigation ul.active {
        display: flex;
    }
    
    .site-navigation li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .pickup-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-header,
    .entry-content,
    .entry-footer {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .article-title {
        font-size: 16px;
    }
    
    .entry-title {
        font-size: 22px;
    }
    
    .sidebar-categories {
        grid-template-columns: 1fr;
    }
}
