/* 基本スタイル */
* {
    box-sizing: border-box; /* パディングとボーダーを幅に含める */
}

body {
    font-family: 'Noto Sans JP', "Kiwi Maru", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2b3e2f; /* ダークグリーン背景 */
    color: #f1f1f1; /* 明るい文字色 */
}
body, html {
    overflow-x: hidden;
    width: 100%;  /* 画面幅いっぱいに */
    height: 100%; /* 画面高さいっぱいに */
    overflow-x: hidden; /* 横スクロール防止 */
}

/* メインコンテンツ */
.main-content {
    display: flex;
    justify-content: space-between;
    margin: 30px;
    margin-left: 120px;
    margin-right: 120px;
}

/* 記事のスタイル */
.articles {
    flex: 3;
    margin-right: 20px;
}

article {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

article h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2b3e2f; /* ダークグリーン */
}

article p {
    font-size: 1rem;
    color: #777;
}

article a {
    text-decoration: none;
    color: #2b3e2f;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #a1c349; /* 明るい草色 */
    transition: background-color 0.3s ease;
}

article a:hover {
    background-color: #4b7a41; /* 濃い緑 */
}

/* 記事のホバーエフェクト */
article:hover {
    transform: translateY(-5px);
}

/* サイドバー */
.sidebar {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar h3 {
    font-size: 1.5rem;
    color: #286f2c; /* 明るい草色 */
    margin-bottom: 15px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #2b3e2f;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #a1c349; /* 明るい草色 */
}

/* サイドバーのランダム記事 */
.sidebar h4 {
    color: #2b3e2f; /* ランダム記事タイトルの色を変更 */
}

.sidebar a {
    color: #2b3e2f !important; /* ランダム記事のリンク色を変更 */
}

.sidebar a:hover {
    color: #4b7a41; /* ホバー時のリンク色を少し明るく変更 */
}

/* ヘッダー */
header {
    background-color: #2b3e2f; /* ダークグリーン */
    color: #f1f1f1; /* 明るい文字色 */
    padding: 30px;
    text-align: center;
    border-bottom: 5px solid #4b7a41; /* 濃い緑のボーダー */
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-family: 'Cursive', sans-serif; /* 手書き風のフォント */
}

header h2 {
    font-size: 2rem;
    color: #f1f1f1;
    font-weight: normal;
    margin-top: 10px;
}

.topp {
    margin-top: 100px;
}

/* モバイル向けスタイル */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        margin: 20px;
    }

    .articles {
        margin-right: 0;
    }

    .sidebar {
        margin-top: 20px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header h2 {
        font-size: 1.5rem;
    }

    .topp {
      margin-top: 20px;
    }
}

@media (max-width: 480px) {
    article h2 {
        font-size: 1.5rem;
    }

    article p {
        font-size: 0.9rem;
    }

    article a {
        font-size: 0.9rem;
    }

    .sidebar h3 {
        font-size: 1.2rem;
    }

    .sidebar ul li a {
        font-size: 1rem;
    }
}

.blasck {
    color: #2b3e2f;
}

/* 新しいセクション（記事やサイドバー）を統一したデザインにするために調整 */
.Blog {
    max-width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.BlogHeader {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    margin-top: 100px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    text-align: center;
}

.BlogHeader .blog-title {
    font-family: 'Noto Sans', sans-serif;
    font-size: 2rem;
    color: #a1c349;
    margin: 0;
}

.BlogHeader .blog-date {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    color: #6b8e23;
    margin: 5px 0 0 0;
}
