@charset "utf-8";

/* 共通設定 */
body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    line-height: 1.8;
    font-weight: 500;
    font-size: 16px;
    color: #040B18;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

h1.topindex {
    text-align: center;
    font-size: 2rem;
    margin: 120px 0 2rem;
    color: #2c3e50;
}

/* 検索フォーム */
.blog-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input[type="text"] {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 250px;
}

.search-form select {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.search-form button {
    padding: 10px 20px;
    background-color: #94ABBF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #5A6877;
}

/* 記事一覧 */
.article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.newsarticle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.articleitem {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
}

.articleitem:hover {
    transform: translateY(-5px);
}

.articleitem a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1rem;
}

.thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.newstitle {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 0 0.5rem;
    color: #34495e;
}

time {
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 800px) {
    .search-form {
        flex-direction: column;
        gap: 5px;
    }

    .search-form input[type="text"],
    .search-form select,
    .search-form button {
        width: 100%;
    }

    h1.topindex {
        margin-top: 90px;
    }
}
