/* ==========================================
   をとゲー ブログ専用共通スタイルシート
   ========================================== */

:root {
    --accent: #00ffcc;
    --accent-glow: rgba(0, 255, 204, 0.3);
    --bg: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.95);
    --border-color: #2a2a2a;
    --text-color: #eee;
    --text-muted: #aaa;
}

body {
    background: var(--bg);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

/* ヘッダー */
.blog-header {
    background: #050505;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blog-header .logo {
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}
.header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.header-nav a:hover, .header-nav a.active {
    color: var(--accent);
}

/* レイアウト */
.blog-container {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* メインコンテンツ */
.blog-main {
    flex: 1;
    min-width: 0;
}

.blog-post {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-sizing: border-box;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.category-tag {
    font-size: 0.75em;
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: bold;
}
.post-header h1 {
    font-size: 1.85rem;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.4;
}
.post-meta {
    color: #666;
    font-size: 0.85rem;
}
.post-meta span {
    margin-right: 15px;
}

/* 記事本文 */
.post-body p {
    margin-bottom: 20px;
    color: #ddd;
}

/* 導入の悩みリスト（赤系のアクセント） */
.intro-problems {
    background: rgba(255, 0, 100, 0.05);
    border-left: 4px solid #ff0055;
    padding: 15px 15px 15px 35px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    list-style-type: '❓ ';
}
.intro-problems li {
    margin-bottom: 8px;
    color: #ffb3cc;
}
.intro-problems li:last-child {
    margin-bottom: 0;
}

/* 各見出しセクション（新しい記事でも使い回せます） */
.tip-section {
    margin-top: 40px;
}
.tip-section h2, .summary-section h2 {
    color: var(--accent);
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    padding-bottom: 8px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

/* 本文内の箇条書き */
.inline-list {
    padding-left: 20px;
    margin: 15px 0 20px;
}
.inline-list li {
    margin-bottom: 6px;
    list-style-type: square;
    color: #ccc;
}

/* まとめセクション */
.summary-section {
    margin-top: 50px;
    padding-top: 20px;
}
.highlight-box {
    background: rgba(0, 255, 204, 0.05);
    border: 1px dashed var(--accent);
    border-radius: 10px;
    padding: 20px 20px 20px 40px;
    margin: 25px 0;
}
.highlight-box ul li {
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff;
}

/* サイドバー */
.blog-sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-sizing: border-box;
}
.sidebar-widget h3 {
    color: var(--accent);
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
}
.sidebar-widget p {
    font-size: 0.85rem;
    color: #bbb;
    margin: 0 0 15px 0;
}
.widget-btn {
    display: block;
    text-align: center;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.widget-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 10px var(--accent-glow);
}
.links-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.links-widget ul li {
    margin-bottom: 10px;
}
.links-widget ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.links-widget ul li a:hover {
    color: var(--accent);
}

/* フッター */
footer {
    text-align: center;
    padding: 60px 20px;
    border-top: 1px solid #1a1a1a;
    background: #050505;
    margin-top: 60px;
}
.footer-links a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.85em;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 10px;
}
.footer-links a:hover { 
    color: white;
    text-decoration: underline; 
}

/* レスポンシブ（スマホ対応） */
@media (max-width: 850px) {
    .blog-container {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .blog-post {
        padding: 25px 20px;
    }
    .post-header h1 {
        font-size: 1.5rem;
    }
}

/* ==========================================
   記事一覧（インデックスページ）用の追加スタイル
   ========================================== */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.post-card {
    /* 背景色を少し明るいグレー（#161616）にして、全体の背景（#0a0a0a）と差をつけます */
    background: #161616; 
    /* 境界線を少し明るく太くして、はっきりと区切ります */
    border: 2px solid #333333; 
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    /* カードの下に影（シャドウ）をつけて、浮き上がっているように見せます */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); 
}

.post-card:hover {
    transform: translateY(-4px);
    /* カーソルを合わせたときは、をとゲーのテーマカラーで光らせます */
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 255, 204, 0.2);
}

.card-content {
    /* 内側の余白を少し広げて、記事ごとの独立感をアップさせます */
    padding: 28px; 
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.post-card h3 {
    font-size: 1.15rem;
    margin: 10px 0;
    line-height: 1.4;
}

.post-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.post-card h3 a:hover {
    color: var(--accent);
}

.card-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 15px 0;
    line-height: 1.6;
    flex-grow: 1; /* 説明文の長さにバラつきがあっても高さを統一する */
}

.card-meta {
    font-size: 0.75rem;
    color: #555;
    margin-top: auto;
}

/* スマホ等で1列にするための微調整 */
@media (max-width: 600px) {
    .post-list {
        grid-template-columns: 1fr;
    }
}