:root {
    --primary-color: #004d40;
    --accent-color: #d4af37;
    --bg-color: #f5f5f5;
    --text-color: #333;
    --sidebar-bg: #fff;
    --card-bg: #fff;
    --header-bg: #1a1a1a;
    --nav-bg: #2c2c2c;
    --ai-summary-bg: #f0f4f8;
    --ai-label-bg: #00796b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header & Nav */
.header {
    background-color: var(--header-bg);
    color: #fff;
    padding: 40px 0 20px;
    text-align: center;
}

.logo {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 5px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-logo-container {
    margin-bottom: 20px;
}

.logo-img {
    max-width: 800px;
    /* 特大サイズ（前回の約1.2倍強） */
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

.tagline {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.sub-tagline {
    font-size: 1.1rem;
    /* 少し大きく */
    line-height: 1.8;
    color: #eee;
    font-weight: 500;
    margin-bottom: 50px;
    /* 1行分の空欄を確保 */
}

.nav {
    background-color: var(--nav-bg);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-color);
}

/* Main Content */
.main {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    /* 横並びレイアウト */
    align-items: center;
    /* 垂直方向中央揃え */
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    width: 120px;
    min-width: 120px;
    height: 80px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .post-card {
        flex-direction: column;
    }

    .post-image {
        width: 100%;
        height: 200px;
    }
}

.post-body {
    padding: 15px 20px 15px 5px;
    /* 左パディングを縮小してスペース確保 */
    flex-grow: 1;
}

.post-meta .date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 700;
    background-color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    box-shadow: 2px 2px 0 var(--accent-color);
}

.date::before {
    content: "🕒 ";
    margin-right: 4px;
}

.post-meta {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.category {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

.post-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-summary {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* AI Summary Section */
.post-ai-summary {
    background-color: var(--ai-summary-bg);
    padding: 15px;
    border-radius: 6px;
    position: relative;
    border-left: 4px solid var(--ai-label-bg);
    margin-top: 15px;
}

.rebrand-label {
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: var(--ai-label-bg);
    color: #fff;
    font-size: 0.76rem;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 700;
}

.post-ai-summary ul {
    list-style: none;
    padding-left: 5px;
}

.post-ai-summary li {
    font-size: 0.85rem;
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
}

.post-ai-summary li::before {
    content: "●";
    color: var(--ai-label-bg);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar-section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--ai-summary-bg);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-item:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tag-item.active {
    background-color: var(--primary-color);
    color: #fff;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.page-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 700;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background-color: var(--sidebar-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

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

.widget-list li {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

.widget-list a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.widget-list a:hover {
    color: var(--primary-color);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background-color: #eee;
    color: #666;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Footer */
.footer {
    background-color: var(--header-bg);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: #d32f2f;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-weight: 700;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.ad-link {
    display: block;
    background: #d32f2f;
    color: #fff;
    padding: 12px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: 700;
}

.ad-link:hover {
    background: #b71c1c;
}

/* PR Card specific */
.pr-badge {
    background: #d32f2f;
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    margin-right: 8px;
}


/* Advertisement Inquiry */
.ad-inquiry-container {
    text-align: left;
    margin-top: 20px;
    padding: 15px 0;
}

.ad-inquiry-link {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.ad-inquiry-link:hover {
    color: var(--primary-color);
}

/* Sidebar Banners */
.sidebar-banner {
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: filter 0.3s ease;
}

.sidebar-banner:hover {
    transform: translateY(-5px);
}

.sidebar-banner:hover .banner-img {
    filter: brightness(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}