/* ========================================
   ブログサイト - プロトタイプCSS
   ホームページのデザインを踏襲
   ======================================== */

/* カラーパレット（ホームページと統一） */
:root {
    --ocean-blue: #1E90FF;
    --deep-blue: #0066CC;
    --aqua: #00CED1;
    --emerald-green: #50C878;
    --grass-green: #7CB342;
    --light-green: #B2FF59;
    --white: #FFFFFF;
    --light-gray: #E0E0E0;
    --dark-gray: #424242;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(180deg, var(--ocean-blue) 0%, var(--aqua) 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ピクセルボックス */
.pixel-box {
    background: var(--white);
    border: 4px solid var(--dark-gray);
    box-shadow: 8px 8px 0 var(--shadow);
    padding: 20px;
}

.pixel-box-large {
    background: rgba(255, 255, 255, 0.95);
    border: 6px solid var(--emerald-green);
    box-shadow: 12px 12px 0 var(--shadow);
    padding: 30px;
    display: inline-block;
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
    background: var(--deep-blue);
    padding: 15px 0;
    border-bottom: 6px solid var(--emerald-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px var(--shadow);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-link {
    text-decoration: none;
}

.logo-sentence {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.ADVANCE {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #ffd700;
    text-shadow: 3px 3px 0 var(--dark-gray);
}

.school {
    font-size: 11px;
    color: var(--white);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 var(--dark-gray);
}

.main-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-button {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    background: var(--grass-green);
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    border: 3px solid var(--dark-gray);
    box-shadow: 4px 4px 0 var(--shadow);
    transition: all 0.2s;
}

.nav-button:hover,
.nav-active {
    background: var(--light-green);
    color: var(--dark-gray);
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 var(--shadow);
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--emerald-green);
    transition: all 0.3s;
}

/* モバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--emerald-green);
    border-bottom: 3px solid var(--dark-gray);
}

.mobile-menu-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--white);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.mobile-nav-button {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--dark-gray);
    padding: 20px;
    text-decoration: none;
    border-bottom: 2px solid var(--light-gray);
    transition: all 0.2s;
}

.mobile-nav-button:hover {
    background: var(--emerald-green);
    color: var(--white);
    padding-left: 30px;
}

/* ========================================
   ブログヒーロー
   ======================================== */
.blog-hero {
    padding: 50px 0 30px;
    text-align: center;
    background: url('https://programming-school-advance.com/wp-content/uploads/2026/02/9d7121b1895aee5dcc7c1457652ac23a.jpg') repeat;
    background-size: 32px 32px;
}

.blog-hero-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: var(--deep-blue);
    line-height: 1.5;
    text-shadow: 2px 2px 0 var(--emerald-green);
}

.blog-hero-sub {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-hero-desc {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* ========================================
   パンくずリスト（SEO + ナビゲーション）
   ======================================== */
.breadcrumb {
    background: var(--deep-blue);
    padding: 8px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.breadcrumb-list li {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-list li+li::before {
    content: '▶';
    margin-right: 8px;
    font-size: 9px;
}

.breadcrumb-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--light-green);
}

/* ========================================
   フィルター・並び替えエリア
   ======================================== */
.filter-section {
    padding: 20px 0;
    background: url('https://programming-school-advance.com/wp-content/uploads/2026/02/b04d8b08b6803764f5a08f776cd29d0c.jpg') repeat;
    background-size: 32px 32px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.sort-group,
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--deep-blue);
    margin-right: 4px;
}

.sort-btn,
.tag-btn {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border: 3px solid var(--dark-gray);
    background: var(--white);
    color: var(--dark-gray);
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--shadow);
    transition: all 0.2s;
}

.sort-btn:hover,
.tag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 var(--shadow);
}

.sort-btn.active {
    background: var(--deep-blue);
    color: var(--white);
    border-color: var(--ocean-blue);
}

.tag-btn.active {
    background: var(--emerald-green);
    color: var(--white);
    border-color: var(--grass-green);
}

/* ========================================
   ブログ記事一覧
   ======================================== */
.blog-list-section {
    padding: 30px 0 60px;
    background: url('https://programming-school-advance.com/wp-content/uploads/2026/02/1bb9994bb9736f8a6cda1fba588eeba3.jpg') repeat;
    background-size: 32px 32px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ブログカード */
.blog-card {
    background: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 12px 12px 0 var(--shadow);
}

.blog-card-thumb {
    overflow: hidden;
    border-bottom: 4px solid var(--emerald-green);
}

.blog-card-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border: 2px solid;
    display: inline-block;
}

.tag-programming {
    background: #E3F2FD;
    color: #1565C0;
    border-color: #2196F3;
}

.tag-event {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #4CAF50;
}

.tag-education {
    background: #FFF3E0;
    color: #E65100;
    border-color: #FF9800;
}

.tag-news {
    background: #F3E5F5;
    color: #7B1FA2;
    border-color: #9C27B0;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--dark-gray);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-card-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.blog-card-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--deep-blue);
    text-decoration: none;
    border: 2px solid var(--ocean-blue);
    padding: 8px 14px;
    display: inline-block;
    transition: all 0.2s;
    align-self: flex-start;
}

.blog-card-link:hover {
    background: var(--ocean-blue);
    color: var(--white);
    transform: translateX(4px);
}

/* 非表示アニメーション */
.blog-card.hidden {
    display: none;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
    background: var(--deep-blue);
    border-top: 6px solid var(--emerald-green);
    padding: 30px 0;
    text-align: center;
    color: var(--white);
}

.footer-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: #ffd700;
    text-shadow: 2px 2px 0 var(--dark-gray);
    margin-bottom: 8px;
}

.footer-text {
    font-size: 13px;
    margin-bottom: 5px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 12px 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--light-green);
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .blog-hero-title {
        font-size: 18px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .ADVANCE {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .blog-hero-title {
        font-size: 14px;
    }

    .sort-btn,
    .tag-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}