/*
 Theme Name:    biglog
 Author:        kato
*/

/* =========================================
   1. 基本設定
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.65;
    background-color: #121212;
}

a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ボタンと共通コンポーネント */
.primary-button {
    display: inline-block;
    background-color: #3498db;
    color: white !important;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid #3498db;
    transition: all 0.3s ease;
}

.primary-button:hover {
    background-color: #5dade2;
    border-color: #5dade2;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
    border-radius: 2px;
}

/* =========================================
   2. ヘッダー
   ========================================= */
.site-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f0f0f0;
    letter-spacing: 1.5px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
}

.main-navigation li {
    margin-left: 30px;
}

.main-navigation a {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 0;
    text-transform: uppercase;
}

/* =========================================
   3. ヒーローセクション
   ========================================= */
.hero-section {
    background-color: #1a1a1a;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

.hero-subtext {
    font-size: 1rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* =========================================
   4. BigQueryのメリット
   ========================================= */
.section-benefits {
    padding: 40px 0;
    margin-bottom: 40px;
}

.benefit-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.benefit-card {
    background-color: #242424;
    padding: 30px;
    border-radius: 4px;
    flex: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-top: 5px solid #3498db;
}

.benefit-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #383838;
    margin-bottom: -15px;
    text-align: right;
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #ccc;
}


/* =========================================
   5. レッスンセクション
   ========================================= */
.section-lessons {
    padding: 40px 0;
    background-color: #1a1a1a;
    margin-bottom: 40px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.lesson-card {
    display: block;
    padding: 25px;
    border: 1px solid #333;
    background-color: #242424;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #f0f0f0;
}

.lesson-card:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
}

.card-step-tag {
    display: inline-block;
    color: #3498db;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 10px;
    border: 1px solid #3498db;
    padding: 3px 8px;
    border-radius: 20px;
    background-color: rgba(52, 152, 219, 0.1);
}

.lesson-card h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.lesson-excerpt {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
}

.read-more {
    display: block;
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 600;
}


/* =========================================
   6. コンテンツレイアウト (記事一覧を横並びに)
   ========================================= */
.content-layout {
    padding-top: 30px;
}

.content-inner {
    display: flex;
    gap: 40px;
}

.main-content-column {
    flex: 3;
    /* ここに横並びの設定を追加 */
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-content: flex-start;
}

/* カラム見出しだけは横いっぱいに広げる */
.column-heading {
    width: 100%; 
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

/* 記事カード */
.article-post-card {
    position: relative; /* 子の絶対配置の基準 */
    width: calc(50% - 15px); /* 2カラム設定 */
    display: flex;
    flex-direction: column;
    padding: 25px;
    border: 1px solid #333;
    background-color: #242424;
    border-radius: 4px;
    transition: all 0.2s ease;
    /* color: #f0f0f0; */
}

.article-post-card:hover {
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
    transform: translateY(-3px);
}

/* カード全体をリンクにする魔法 */
.article-post-card .entry-title a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.entry-meta {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-title a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.entry-excerpt{
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0;
}

/* ページネーションを横いっぱいに戻す */
.navigation.posts-navigation {
    width: 100%;
    margin: 40px 0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-links a, .nav-links .disabled {
    padding: 10px 20px;
    border: 1px solid #3498db;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3498db;
}

.nav-links a:hover {
    background-color: #3498db;
    color: #ffffff;
}

/* サイドバー */
.sidebar-column {
    flex: 1;
    min-width: 280px;
}

.widget {
    background-color: #1a1a1a;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 4px;
    border: 1px solid #333;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed #333;
}

.widget li a {
    color: #ccc;
    font-size: 0.9rem;
}

.search-form {
    display: flex;
}

.search-field {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    background-color: #222;
    color: #f0f0f0;
    border-radius: 4px 0 0 4px;
}

.search-submit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* =========================================
   7. フッター
   ========================================= */
.site-footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 40px 0;
    font-size: 0.85rem;
    border-top: 1px solid #333;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav a {
    color: #888;
    margin-left: 15px;
}

/* =========================================
   8. レスポンシブ対応
   ========================================= */
@media (max-width: 900px) {
    .content-inner {
        flex-direction: column;
    }

    .article-post-card {
        width: 100%; /* スマホでは1列 */
    }

    .sidebar-column {
        order: 2;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .benefit-grid {
        flex-direction: column;
    }
}

/* =========================================
   9. 記事詳細 (抜粋)
   ========================================= */
.entry-content h2 {
    font-size: 1.7rem;
    color: #ffffff;
    background-color: #242424;
    padding: 15px 20px;
    border-left: 5px solid #3498db;
    margin: 60px 0 30px;
}

pre {
    background-color: #000;
    color: #e0e0e0;
    padding: 20px;
    overflow-x: auto;
    border: 1px solid #333;
    margin: 20px 0;
    font-family: monospace;
}











/* --- 10. Single Post Styles (記事詳細) --- */
.single-post-container {
    max-width: 800px; /* 読みやすさのため幅を少し絞る */
    margin: 40px auto;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
}

.post-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.post-title {
    font-size: 1.5rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* 本文内のスタイル調整 */
.entry-content {
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* 本文内の見出し */
.entry-content h2 {
    font-size: 1.2rem;
    color: #fff;
    border-left: 5px solid #3498db;
    padding-left: 15px;
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 30px 0 15px;
}

/* コードブロック */
.entry-content pre {
    background: #000;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #444;
    margin: 20px 0;
}

.entry-content code {
    font-family: 'Courier New', Courier, monospace;
    /* background: #333; */
    padding: 2px 5px;
    border-radius: 3px;
    color: green;
}

/* リスト */
.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* 画像 */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .single-post-container {
        padding: 20px;
        margin: 20px 10px;
    }
    .post-title {
        font-size: 1.8rem;
    }
}





/* 目次全体のコンテナ */
.mokuji {
    /* サイト全体が真っ白でない場合、この値（#f8f9fa）を
       実際のサイトの背景色のカラーコードに変更してください */
    background-color: #1a1a1a; 
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 2em 0;
}

/* 「目次」というタイトル部分 */
.mokuji span {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

/* タイトルの前のアイコン（リスト風アイコンを擬似要素で作成） */
.mokuji span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 18px;
    background-color: #f0f0f0; /* BIGLOGのメインカラー青 */
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/></svg>") no-repeat center;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z'/></svg>") no-repeat center;
}

/* リスト全体のスタイル */
.mokuji ul {
    list-style: none; /* デフォルトの点を消す */
    padding: 0;
    color:f0f0f0;
    margin: 0;
}

/* 各リスト項目 */
.mokuji li.big {
    margin-bottom: 8px;
    border-bottom: 1px dashed #333; /* 項目間の区切り線 */
    padding-bottom: 8px;
}

.mokuji li.big:last-child {
    border-bottom: none; /* 最後の線は消す */
}

/* リンクのスタイル */
.mokuji li.big a {
    text-decoration: none;
    color: #f0f0f0; /* BIGLOGのリンクカラー */
    font-size: 0.95rem;
    display: block;
    transition: all 0.3s ease;
}

/* ポイント全体の枠組み */
.points {
    background-color: #1a1a1a; /* BIGLOGの青をベースにした非常に薄い青色 */
    border: 1px solid #333; /* 枠線 */
    border-radius: 8px;       /* 角を丸く */
    padding: 20px 25px;
    margin: 2em 0;
    position: relative;
}

/* タイトル代わりの装飾（任意で追加したい場合用の余白） */
.points span {
    display: block;
    font-size: 1rem;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
}

/* 最後の項目の余白を調整 */
.points span:last-child {
    margin-bottom: 0;
}

/* 文字の中の「・」を非表示にする（CSSで装飾するため） */
.points {
    list-style: none;
}