/*
Theme Name: mosha-minimal
Author: mosha
Description: Vitalik-inspired minimal theme
Version: 3.4
*/

/* =========================================
   1. リセット & 基本設定
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    background-color: #FFFFFF;
    color: #333333;
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
    line-height: 1.6;
    font-size: 18px;
    margin: 0;
    padding: 0;
}

/* =========================================
   2. レイアウト（中央寄せ 1カラム）
   ========================================= */
#page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================================
   3. ヘッダー
   ========================================= */
.site-header {
    margin-bottom: 60px;
    border-bottom: none;
    text-align: center;
}

.site-branding {
    margin-bottom: 30px;
}

.site-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: -0.02em;
    color: #000000;
}

.site-title a {
    text-decoration: none;
    color: #000;
}

.site-description {
    color: #666;
    font-size: 1rem;
    margin-top: 10px;
    font-style: italic;
}

/* =========================================
   4. ナビゲーション
   ========================================= */
.menu-toggle {
    display: none !important;
}

.main-navigation {
    width: 100%;
    margin-bottom: 40px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding: 10px 0;
    position: relative;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main-navigation a {
    text-decoration: none;
    color: #5c90d2;
    font-size: 1rem;
    font-family: sans-serif;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #3a70b2;
    text-decoration: underline;
}

.main-navigation .about-link {
    position: absolute;
    right: 0;
    top: -30px;
    font-size: 1rem;
    font-weight: 500;
    color: #999 !important;
    text-decoration: none;
}
.main-navigation .about-link:hover {
    text-decoration: underline;
    color: #666 !important;
}

/* =========================================
   5. コンテンツ（記事）
   ========================================= */
article {
    margin-bottom: 40px;
}

/* PC用 記事詳細タイトル */
h1.entry-title {
    font-size: 2.0rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

/* PC用 記事一覧タイトル */
h2.entry-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 5px 0 0 0;
}

h2.entry-title a {
    text-decoration: none;
}
h2.entry-title a:hover {
    text-decoration: underline;
}

/* メタ情報 */
.entry-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-family: monospace;
}

/* Vitalik風メタデータコンテナ */
.vitalik-meta-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ccc;     
    border-bottom: none;            
    padding-top: 10px;
    padding-bottom: 0;
    margin-bottom: 50px;
    font-size: 1rem;
    color: #666;
    font-family: monospace;
}

.vitalik-meta-container .entry-meta {
    margin-bottom: 0;
}

.all-posts-link a {
    text-decoration: none;
    color: #5c90d2;
}
.all-posts-link a:hover {
    text-decoration: underline;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
    background-color: #f7f7f7;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* =========================================
   6. リンク全般
   ========================================= */
a {
    color: #5c90d2;
    text-decoration: underline;
    transition: color 0.2s ease;
}

a:visited {
    color: #5c90d2;
}

a:hover {
    color: #3a70b2;
    background-color: transparent;
    text-decoration: none;
}

.screen-reader-text {
    display: none;
}

/* =========================================
   7. フッター
   ========================================= */
.site-footer {
    background-color: #FFFFFF;
    color: #999999;
    text-align: center;
    padding: 60px 0;
    font-size: 0.85rem;
}

.footer-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.site-footer a {
    color: #999999;
    text-decoration: none;
}

.site-footer a:hover {
    color: #666666;
    text-decoration: underline;
}

/* =========================================
   8. モバイル・タブレット用レスポンシブ調整（修正版）
   ========================================= */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }

    #page {
        padding: 20px 15px;
    }

    /* ヘッダー */
    .site-header {
        margin-bottom: 30px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    /* メニュー */
    .main-navigation ul {
        gap: 10px 10px;
    }
    
    .main-navigation a {
        font-size: 0.75rem; 
    }
    
    .main-navigation .about-link {
        top: -26px;         
        font-size: 0.75rem; 
    }

    /* --- 記事タイトル（今回ここを追加・修正しました） --- */
    
    /* 記事詳細（h1） */
    h1.entry-title {
        font-size: 1.2rem !important; 
        line-height: 1.4;
        font-weight: 700;
        margin-bottom: 10px;
    }

    /* 記事一覧（h2）※ここがスクショの箇所です */
    h2.entry-title {
        font-size: 1.0rem !important; /* グッと小さくしました */
        line-height: 1.4;
        font-weight: 700;
        margin: 5px 0 0 0;
    }

    /* メタ情報 */
    .vitalik-meta-container, 
    .entry-meta {
        font-family: monospace, serif; 
        font-size: 0.8rem;
        flex-direction: row;
        margin-bottom: 25px;
    }
    
    pre {
        font-size: 0.85rem;
        padding: 10px;
    }

    .site-footer {
        padding: 40px 0;
    }
}