body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding-top: 50px;
    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);
}

section {
    margin-bottom: 40px;
}

section h2 {
    color: #333;
    margin: 0 0 30px 0;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 均等に配置 */
}

.info-block {
    display: block; /* リンクをブロック要素として扱う */
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    flex-basis: calc(33.33% - 10px); /* 3つを1行に並べる */
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    margin-bottom: 20px; /* 下の行との間隔を空ける */
    text-decoration: none; /* リンクの下線を消す */
    color: #333; /* リンクのテキストカラーを設定 */
}

.info-block:hover {
    background-color: #e9ecef;
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-name {
    font-weight: normal;
    font-size: 18px;
    color: #333;
    text-decoration: none; /* 下線を消す */
}

.sidebar {
    width: 200px;
    min-width: 200px; /* 最小幅を設定 */
    max-width: 200px; /* 最大幅を設定 */
    background-color: white; /* 枠の中を白に */
    padding: 20px;
    border: 1px solid #e4e4e4;
    border-radius: 20px; /* 角をさらに丸く */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.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: 992px) {
    .info-block {
        flex-basis: calc(50% - 10px);
    }
}

@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;  /* ロゴをヘッダーの最上部に移動 */
    }

    .info-row {
        flex-direction: column;
    }

    .info-block {
        flex-basis: 100%;
    }

    main {
        padding: 40px;
    }
}

@media (min-width: 768px) {
    .close-button {
        display: none; /* PC表示時に×ボタンを非表示に */
    }
}
