/* 基本的なリセットとフォント */
body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9; /* 薄い背景色 */
    color: #333;
}

header {
    background-color: #3f51b5; /* ヘッダーのメインカラー */
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 20px;
}

/* 一覧全体をグリッドで配置 */
.website-list {
    display: grid;
    /* 画面サイズに応じて列数を自動調整 */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto; /* 中央寄せ */
}

/* 個別のカードデザイン */
.website-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.website-item:hover {
    transform: translateY(-5px); /* ホバーで少し浮かせる */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.website-item h2 {
    color: #007bff;
    margin-top: 0;
}

.description {
    font-size: 0.9em;
    color: #666;
    min-height: 40px; /* 説明文の高さの目安 */
}

.links a {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 15px;
    background-color: #28a745; /* ボタンの色 */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
}

.links a:hover {
    background-color: #218838;
}

footer {
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    font-size: 0.85em;
    color: #777;
}