/* Articles.html および各記事ページ専用スタイル */

/* ===== Articles.html 用（記事一覧） ===== */
body.articles-page {
    background-color: var(--bg-color);
}

body.articles-page main {
    margin-top: 100px;
    padding: 3rem;
    margin-left: 2rem;
    color: var(--text-dark);
}

.article-list > .article-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin: 2rem auto;
    max-width: 700px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark); 
}

.article-list > .article-item a {
    font-size: larger;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
}

.article-list > .article-item a:hover {
    text-decoration: underline;
}

.article-list .date {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 0.7;
}

/* ===== 各記事ページ用（1カラム） ===== */
body.article-page {
    background: var(--bg-color);
}

.article-page img {
    height: 500px;
    width: 700px;
}

.article-wrapper {
    max-width: 800px;
    width: 90vw;
    margin: 2rem auto;
    margin-top: 100px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    box-sizing: border-box;
}
/*indexと少しデザインが違う*/
main{
    background-color: #F5EEDD;
    box-shadow: none;
}

.article-wrapper h2 {
    color: var(--text-dark); 
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 0.5em;
    margin-bottom: 0em;
}

@media (max-width: 600px) {
    .article-wrapper {
        padding: 1rem;
        margin-top: 70px;
    }
}

