/* ========================================
   main.css
   板ログ（ipsearch.jp）共通スタイル
======================================== */

/* 共通ラッパー */
.itaglog-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* セクションタイトル */
.itaglog-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4caf50;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.itaglog-section-title span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.itaglog-section-title a {
    font-size: 12px;
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
}

.itaglog-section-title a:hover {
    text-decoration: underline;
}

/* ========================================
   サイドバー
======================================== */
.itaglog-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.itaglog-sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.3);
    margin-bottom: 24px;
    transition: opacity 0.2s;
}

.itaglog-sidebar-cta:hover {
    opacity: 0.9;
}

.itaglog-sidebar-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.itaglog-sidebar-title {
    background: #4caf50;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itaglog-sidebar-body {
    padding: 16px;
}

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

.itaglog-sidebar-list li {
    border-bottom: 1px solid #f5f5f5;
    padding: 10px 0;
}

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

.itaglog-sidebar-list a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.itaglog-sidebar-list a:hover {
    color: #4caf50;
}

.itaglog-count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: #999;
}

/* ========================================
   バッジ類
======================================== */
.itaglog-source-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
    white-space: nowrap;
}

.itaglog-danger-badge {
    background: #ffebee;
    color: #e53935;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.itaglog-news-badge {
    background: #4caf50;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.itaglog-alert-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

/* ========================================
   ニュースボックス
======================================== */
.itaglog-news-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.itaglog-news-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    align-items: center;
    transition: background 0.2s;
}

.itaglog-news-item:last-child {
    border-bottom: none;
}

.itaglog-news-item:hover {
    background: #f9fbe7;
}

.itaglog-news-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.itaglog-news-title {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
}

/* ========================================
   注意喚起ボックス
======================================== */
.itaglog-alert-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 40px;
}

/* ========================================
   レスポンシブ共通
======================================== */
@media (max-width: 768px) {
    .itaglog-wrapper {
        flex-direction: column;
        padding: 0 16px;
    }

    .itaglog-sidebar {
        width: 100%;
        order: 2;
    }

    .itaglog-content {
        order: 1;
    }

    .itaglog-section-title {
        font-size: 16px;
    }
}

/* ========================================
   フッター
======================================== */
.itaglog-footer {
    background: #333;
    color: #999;
    margin-top: 60px;
}

.itaglog-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 32px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.itaglog-footer-logo {
    flex: 2;
    min-width: 220px;
}

.itaglog-footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.itaglog-footer-logo-icon {
    width: 36px;
    height: 36px;
    background: #4caf50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

.itaglog-footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    font-family: 'Zen Kurenaido', sans-serif;
}

.itaglog-footer-logo-subtitle {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.itaglog-footer-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.9;
    margin: 0;
}

.itaglog-footer-section {
    flex: 1;
    min-width: 160px;
}

.itaglog-footer-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
    letter-spacing: 1px;
}

.itaglog-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    line-height: 2.4;
}

.itaglog-footer-list a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.itaglog-footer-list i {
    font-size: 9px;
    color: #4caf50;
}

/* コピーライト */
.itaglog-footer-bottom {
    border-top: 1px solid #444;
    background: #2a2a2a;
}

.itaglog-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.itaglog-footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.itaglog-footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

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

.itaglog-footer-copy {
    font-size: 11px;
    color: #666;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .itaglog-footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .itaglog-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .itaglog-footer-links {
        justify-content: center;
    }
}