body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 50px;
    color: #333;
    background-color: #f0f0f0; /* 背景色を灰色に */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    height: 35px;
    width: auto;
    padding: 10px;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nav-list {
    display: flex;
    list-style-type: none;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: inherit;
    padding: 10px;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #3498db;
}

.nav-toggle {
    order: 2;
    flex-shrink: 0;
    display: none;  /* PCではメニューボタンを非表示にする */
    justify-content: flex-end;
}

.menu-button {
    padding: 10px 20px;
    font-size: 16px;
    color: #000000;
    background-color: #ffffff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.menu-button:hover {
    background-color: #f5f5f5;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.main-content {
    display: flex;
    padding: 20px;
    gap: 20px; /* 枠同士の間隔を追加 */
    margin-top: 70px;
}

.content-container {
    display: flex;
    flex-grow: 1;
    gap: 20px;
}

.container {
    flex-grow: 1;
    background-color: white; /* 背景色を白に */
    padding: 20px;
    border: 1px solid #e4e4e4;
    border-radius: 20px; /* 角をさらに丸く */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-top: 20px;
}

.content p {
    grid-column: 1 / -1; /* 文章が写真の上に来るように設定 */
    font-size: 1.2em;
    line-height: 1.6;
    text-align: center;
}

.content img {
    width: 100%;
    height: auto;
    max-height: 300px; /* 画像の最大高さを設定 */
    object-fit: cover; /* 画像のアスペクト比を維持しつつ、指定された枠に収める */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar {
    width: 250px;
    background-color: white; /* 枠の中を白に */
    padding: 20px;
    border: 1px solid #e4e4e4;
    border-radius: 20px; /* 角をさらに丸く */
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar nav ul li a:hover {
    background-color: #ddd;
}

.sidebar nav ul ul {
    list-style-type: none;
    padding-left: 20px;
}

footer {
    background-color: #f9f9f9;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #e4e4e4;
    font-size: 0.9rem;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .nav-toggle {
        display: flex;  /* モバイルではメニューボタンを表示 */
    }
    .nav-list {
        display: none;  /* モバイル画面でナビゲーションメニューを非表示にする */
        flex-direction: column;
        align-items: center;
        position: fixed;
        width: 100%;
        top: 60px;
        left: 0;
        background-color: #fff;
        padding-top: 10px;
        padding-bottom: 10px;
        z-index: 1001;  /* メニューを他の要素の上に表示 */
    }

    .nav-list.active {
        display: flex;  /* メニューボタンがクリックされたときにメニューを表示 */
    }

    .close-button {
        display: none;  /* モバイル画面でのみ表示 */
    }

    .nav-list.active .close-button {
        display: block;  /* ナビゲーションがアクティブのときに表示 */
        order: -1;  /* ×ボタンを一番上に */
    }

    .logo-container {
        order: -1;  /* ロゴをヘッダーの最上部に移動 */
    }
}

@media (min-width: 768px) {
    .close-button {
        display: none; /* PC表示時に×ボタンを非表示に */
    }
}
