:root {
    --main-bg-color: #f5f9fc; /* 背景色 */
    --main-accent-color: #4a90e2; /* アクセントカラー（青） */
    --main-text-color: #333; /* 文字色 */
}

body {
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2 {
    font-family: 'Philosopher', sans-serif;
    font-weight: bold;
    color: var(--main-accent-color);
}

a {
    color: var(--main-accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px;
    padding: 0;
}

.item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.btn a {
    display: inline-block;
    background-color: var(--main-accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn a:hover {
    background-color: #357abd;
}

.page-footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.page-footer a {
    color: var(--main-accent-color);
    margin: 0 10px;
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    nav ul {
        flex-direction: column;
    }
}
