body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    /* フッターを下に固定するための魔法 */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0; /* 余計な隙間を削除 */
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    
    /* ここを変更！「白背景」を強制しない。
       デフォルトは透明で、必要な場合だけ色をつける設定にします。 */
    background-color: transparent; 
    
    /* フッターを押し下げる設定 */
    flex: 1;
    width: 100%; /* 幅を確保 */
    box-sizing: border-box; /* パディングを含めたサイズ計算 */
}

/* 通常のページ（Homeなど）用に「白い紙のような見た目」を作るクラスを追加 */
.paper-style {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    margin-top: auto; /* これでフッターが自動的に最下部に配置されます */
}

/* アイコンリンク（共通） */
.social-links a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    background: #f5f5f5;
    margin: 10px;
    transition: all 0.3s ease;
}

.social-links a i {
    font-size: 2rem;
    margin-right: 10px;
}

.social-links a:hover {
    background: #ddd;
    transform: scale(1.1);
}