/* すべてのページの基本スタイル */
body {
    margin: 0; /* 余白をリセット */
    background-image: url('/wp-content/themes/my-custom-theme/images/787884.png'); /* トップページ用画像 */
    background-size: cover; /* 画面いっぱいに拡大 */
    background-repeat: no-repeat; /* 繰り返しなし */
    background-attachment: fixed; /* 固定（スクロールしても動かない） */
    background-position: center; /* 中央に配置 */
    color: rgb(0, 0, 0);
    min-height: 100vh; /* 画面高さを最低限確保 */
}

/* ヘッダーの調整（背景画像を削除） */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    z-index: 999; /* コンテンツより上 */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent; /* 背景画像を削除 */
    box-sizing: border-box;
}

/* サイトタイトルとナビゲーションの横並び */
header h1 {
    margin: 0 20px 0 0;
    font-size: 2.5em;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header p {
    margin: 0 20px 0 0;
    font-size: 1.2em;
    display: none; /* 必要なら非表示 */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 15px 0 0;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-size: 1.2em;
}

/* コンテンツがヘッダーに隠れないように */
.single-content {
    max-width: 800px;
    margin: 80px auto 20px; /* ヘッダーの高さを考慮 */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    header h1 {
        margin: 0 0 10px 0;
    }

    header p {
        margin: 0 0 10px 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 0 0 10px 0;
    }

    .single-content {
        margin-top: 120px;
    }
}
/* フッターを下部に固定 */
footer {
    position: fixed; /* 画面に固定 */
    bottom: 0; /* 最下部 */
    width: 100%; /* 横幅いっぱい */
    text-align: center; /* 中央揃え */
    font-size: 0.8em; /* 既存のサイズを維持 */
    background-color: rgba(255, 255, 255, 0.8); /* 既存の背景色を維持 */
    padding: 10px 0; /* 上下に余白 */
    box-sizing: border-box; /* パディングを含む幅計算 */
    z-index: 998; /* ヘッダー（z-index: 999）より下 */
}

/* コンテンツがフッターに隠れないように調整 */
.single-content {
    max-width: 800px;
    margin: 80px auto 60px; /* フッターの高さを考慮（60pxは仮定） */
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    footer {
        padding: 5px 0; /* モバイルでの余白を減らす */
    }

    .single-content {
        margin-bottom: 50px; /* モバイルでのフッター高さを考慮 */
    }
}