@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap');

* {
    margin: 0;

}

body {
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    /*縦方向の真ん中*/
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #131313;
    padding-top: 60px;
    /* ヘッダーの高さ分だけ余白を追加 */
}

/*ヘッダーライン*/
hr {
    border: none;
    border-top: 2px solid rgb(179, 179, 179);
    width: 100%;
}

/*ヘッダーライン*/


/* ブログ記事のカード */

.blog-card {
    display: flex;
    flex-direction: row;
    /* 横並びに変更 */
    align-items: center;
    border-bottom: 3px solid #d1d1d1;
    margin: 15px 0;
    /* 縦に追加されるように上下マージン */
    width: 100%;
    /* カード全体の幅を確保 */
    max-width: 800px;
    /* 最大幅を指定 */
    overflow: hidden;
}


.blog-card img {
    width: 150px;
    /* 固定幅 */
    height: auto;
    object-fit: cover;
}


.blog-card .content {
    padding: 15px;
    flex: 1;
    /* タイトル部分を拡張 */
}


/* リンクのスタイルを調整 */
.blog-card a {
    display: block;
    /* ブロック要素として設定 */
    width: 100%;
    /* 横幅をカード全体に固定 */
    text-decoration: none;
    /* 下線を削除 */
    color: inherit;
    /* 親の文字色を継承 */
}


.blog-card h2 {
    margin: 0 0 10px;
    font-size: 1.0rem;
    color: #ffffff;
}


.blog-card p {
    text-align: left;
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}


.blog-card .Group {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    margin: 0;
}

/*Dev*/
.blog-card h2 {
    position: relative;
    /* 必須: ::afterの位置調整に必要 */
    margin: 0 0 10px;
    font-size: 1.0rem;
    color: #ffffff;
    display: inline-block;
    /* テキスト内容の幅に限定 */
}

.blog-card h2::after {
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    /* h2のテキスト幅に合わせる */
    height: 2px;
    background: #ffffff;
    /* アンダーラインの色 */
    bottom: -5px;
    /* アンダーラインの位置調整 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* アニメーションの滑らかさ */
}

.blog-card h2:hover::after {
    visibility: visible;
    bottom: 0;
    /* ホバー時のアンダーライン位置 */
    opacity: 1;
}

/*Dev::h2にホバーアニメーションを追加*/


.container {
    font-family: 'Noto Sans JP', sans-serif;
    width: 50%;
    margin: 20px auto;
    /* 中央配置 */
    padding: 20px;
    background-color: #1E1E1E;
    /* 背景色 */
    border-radius: 10px;
}

/*ユーザー名*/
.user_container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    /* 中央配置 */
    background-color: #1E1E1E;
    /* 背景色 */
    text-align: left;
    /* 左寄せ */
}

.user_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #ffffff;
    border-radius: 20px;
}

.user_link img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/*ユーザー名*/

.article_title_container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    /* 中央配置 */
    background-color: #1E1E1E;
    /* 背景色 */
    color: white;
    text-align: left;
    /* 左寄せ */
}

.sub_container {
    font-family: 'Noto Sans JP', sans-serif;
    width: 85%;
    margin: 20px auto;
    /* 中央配置 */
    padding: 20px;
    background-color: #ffffff;
    /* 背景色 */
    border-radius: 5px;
}

p {
    color: white;
}

footer {
    font-family: 'Noto Sans JP', sans-serif;
    width: 100%;
    left: 0px;
    color: white;
    background-color: #1E1E1E;
    text-align: center;
    padding: 10px 0;
    position: absolute;
    /*←絶対位置*/
    bottom: 0;
    /*下に固定*/
}

/*----レスポンスデザイン----*/
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
}