@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
/* 参政党記事用統一CSS（投票機能完全連動版） */

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 5px;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.content {
    padding: 20px;
}

.image-placeholder {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 100%);
    height: 200px;
    margin: 20px 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

/* ===== post-card スタイル（投票機能完全連動版） ===== */
.post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 15px 0;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    /* 投票ボタンのための下側スペース確保 */
    padding-bottom: 50px;
}

.post-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.post-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
}

.post-id {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
}

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

.post-content {
    font-size: 16px;
    line-height: 1.8;
    min-height: 40px;
}

/* ===== 強調スタイル ===== */
/* ボックス枠強調(推奨スタイル) */
.highlight-box {
    display: inline-block;
    font-size: 1.4em;
    font-weight: bold;
    color: #f77f00;
    border: 2px solid #f77f00;
    border-radius: 8px;
    padding: 8px 15px;
    margin: 5px;
    background-color: #fff8f0;
    box-shadow: 0 2px 4px rgba(247, 127, 0, 0.1);
}

/* 背景色強調(補助的使用) */
.highlight-background {
    font-size: 1.3em;
    font-weight: bold;
    background: linear-gradient(120deg, #ffeaa7 0%, #fab1a0 100%);
    padding: 10px 15px;
    border-radius: 8px;
    margin: 8px 0;
    display: inline-block;
}

/* 文字色強調(補助的使用) */
.highlight-text {
    font-size: 1.3em;
    font-weight: bold;
    color: #f77f00;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ===== 投票機能スタイル（完全連動版） ===== */
.vote-buttons {
    position: absolute;
    bottom: 10px;
    right: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
    flex-direction: row;
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    user-select: none;
    min-width: 50px;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

.vote-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
}

.vote-btn.like {
    color: #e91e63;
    border-color: #fce4ec;
}

.vote-btn.like:hover {
    background: #fce4ec;
    border-color: #e91e63;
    color: #e91e63;
}

.vote-btn.like.active {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.3);
}

.vote-btn.dislike {
    color: #757575;
    border-color: #f5f5f5;
}

.vote-btn.dislike:hover {
    background: #f5f5f5;
    border-color: #757575;
    color: #757575;
}

.vote-btn.dislike.active {
    background: #757575;
    color: white;
    border-color: #757575;
    box-shadow: 0 0 10px rgba(117, 117, 117, 0.3);
}

.vote-count {
    font-weight: bold;
    font-size: 12px;
}

/* 投票メッセージ */
.vote-message {
    font-family: 'Noto Sans JP', sans-serif;
}

/* ===== その他のスタイル ===== */
.editor-comment {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #f77f00;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.editor-comment h3 {
    color: #f77f00;
    margin-bottom: 10px;
    font-size: 18px;
}

.anchor {
    color: #4a90e2;
    text-decoration: none;
}

.source {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 30px;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 768px) {
    .container {
        margin: 0 2px;
        border-radius: 5px;
    }
    
    .header {
        padding: 20px 10px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .content {
        padding: 10px;
    }
    
    .post-card {
        padding: 10px;
        margin: 10px 0;
        /* モバイルでも投票ボタンスペース確保（下側） */
        padding-bottom: 45px;
    }
    
    .post-header {
        gap: 8px;
    }
    
    .post-number {
        padding: 4px 8px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .post-id {
        padding: 2px 6px;
        font-size: 11px;
    }
    
    .post-time {
        font-size: 11px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .vote-buttons {
        bottom: 8px;
        right: 10px;
        gap: 6px;
    }
    
    .vote-btn {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 40px;
        gap: 3px;
    }
    
    .vote-count {
        font-size: 11px;
    }
    
    .image-placeholder {
        height: 150px;
        margin: 15px 0;
        font-size: 16px;
    }
    
    .highlight-box {
        font-size: 1.2em;
        padding: 6px 12px;
        margin: 3px;
    }
    
    .highlight-background {
        font-size: 1.2em;
        padding: 8px 12px;
    }
    
    .highlight-text {
        font-size: 1.2em;
    }
}

/* ===== 管理画面用スタイル ===== */
.sanseito-admin-stats {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.sanseito-admin-stats .stat-item {
    display: inline-block;
    text-align: center;
    margin: 0 15px 10px 0;
    min-width: 80px;
}

.sanseito-admin-stats .stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #23282d;
}

.sanseito-admin-stats .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ===== ダークモード対応 ===== */
@media (prefers-color-scheme: dark) {
    .vote-btn {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .vote-btn:hover {
        background: #4a5568;
    }
    
    .vote-message {
        color: white !important;
    }
}

/* ===== アクセシビリティ対応 ===== */
@media (prefers-reduced-motion: reduce) {
    .post-card,
    .vote-btn {
        transition: none;
    }
    
    .post-card:hover {
        transform: none;
    }
    
    .vote-btn:hover {
        transform: none;
    }
}

/* ===== 印刷用スタイル ===== */
@media print {
    .vote-buttons {
        display: none;
    }
    
    .post-card {
        box-shadow: none;
        border: 1px solid #000;
        page-break-inside: avoid;
        padding-bottom: 15px;
    }
}

/* ===== 小画面での調整 ===== */
@media (max-width: 480px) {
    .post-card {
        padding-bottom: 40px;
    }
    
    .vote-buttons {
        bottom: 5px;
        right: 5px;
        gap: 4px;
    }
    
    .vote-btn {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 35px;
    }
    
    .vote-count {
        font-size: 10px;
    }
}
/* 参政党まとめサイト用フッタースタイル */

.footer-wrapper {
    background: linear-gradient(135deg, #FFB366 0%, #FF8A50 50%, #FF6B35 100%);
    color: #fff;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 40px 0 20px;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* フッターセクションのスタイル */
.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 12px;
    margin-bottom: 18px;
    color: #FFF;
    position: relative;
}

.footer-section h3::before {
    content: "🏛️";
    margin-right: 8px;
    font-size: 16px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
    padding-left: 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    border-radius: 4px;
    position: relative;
}

.footer-section ul li a:hover {
    color: #FFD700;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 15px;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: "▶";
    font-size: 10px;
    margin-right: 8px;
    opacity: 0.7;
    color: #FFD700;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

/* 特別なリンクスタイル */
.footer-section ul li a[href*="twitter"]:hover,
.footer-section ul li a[href*="youtube"]:hover,
.footer-section ul li a[target="_blank"]:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 会社情報・サイト説明のスタイル */
.company-info {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 30px;
    padding-top: 25px;
    text-align: center;
}

.site-description {
    margin-bottom: 15px;
}

.site-description p {
    margin: 8px 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.company-info > p {
    margin: 10px 0 0;
    font-size: 13px;
    opacity: 0.8;
    font-weight: 300;
}

/* 政治系サイト特有のスタイル */
.footer-section:nth-child(1) h3::before {
    content: "🇯🇵";
}

.footer-section:nth-child(2) h3::before {
    content: "📰";
}

.footer-section:nth-child(3) h3::before {
    content: "🔥";
}

.footer-section:nth-child(4) h3::before {
    content: "ℹ️";
}

.footer-section:nth-child(5) h3::before {
    content: "📱";
}

.footer-section:nth-child(6) h3::before {
    content: "🏷️";
}

/* タグリンクのスタイル */
.footer-section ul li a[href*="tag/"]:before {
    content: "#";
    color: #FFD700;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .footer-section h3 {
        font-size: 16px;
    }
    
    .footer-section ul li a {
        font-size: 13px;
    }
    
    .footer-wrapper {
        padding: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-section {
        margin-bottom: 15px;
    }
    
    .footer-section h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .company-info {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .site-description p {
        font-size: 13px;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .footer-wrapper {
        background: linear-gradient(135deg, #E67E22 0%, #D35400 50%, #BF4F36 100%);
    }
}

/* ホバーエフェクト強化 */
.footer-section ul li a {
    position: relative;
    overflow: hidden;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

/* アクセシビリティ向上 */
.footer-section ul li a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 印刷時のスタイル */
@media print {
    .footer-wrapper {
        background: none !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .footer-section ul li a {
        color: #000 !important;
    }
}