/* ----------------------------
   基本スタイル
---------------------------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

/* ----------------------------
   ヘッダーとナビバー
---------------------------- */
header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1001;
    border-bottom: 2px solid #ddd;
    background-color: #333;
}

.top-bar {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 1em 0;
}

.navbar {
    background-color: #333;
    color: white;
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    border-top: 2px solid #ddd;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

/* ----------------------------
   ヒーローセクション（スライダー）
---------------------------- */
.hero-section {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.large-slider {
    position: absolute;
    width: 100%;
    height: 50%;
}

.slide img {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 65%;
    padding: 16px;
    color: red;
    font-weight: bold;
    font-size: 18px;
    user-select: none;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ----------------------------
   メインコンテンツとサイドバー
---------------------------- */
.main-content {
    display: flex;
    margin-top: 6em;
    padding: 2em;
}

.sidebar {
    width: 300px;
    background-color: #5c4646;
    color: white;
    padding: 1em;
    transition: transform 0.3s ease;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    box-shadow: -2px 0 5px rgba(104, 69, 69, 0.5);
    z-index: 1000;
}

.sidebar.collapsed {
    transform: translateX(100%);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 120px;
    left: 10px;
    right: 0;
}

.sidebar ul li {
    margin-bottom: 1em;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

/* ----------------------------
   トグルボタン（外側と内側）
---------------------------- */
.sidebar-toggle.fixed-toggle {
    position: fixed;
    top: 115px;
    right: -10px;
    width: 60px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.fixed-toggle .toggle-icon {
    width: 100%;
    height: 100%;
}

.sidebar .sidebar-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.sidebar .toggle-icon {
    width: 100%;
    height: auto;
}

/* ----------------------------
   フッター
---------------------------- */
footer {
    text-align: center;
    padding: 1em 0;
    background-color: #754444;
    color: white;
    bottom: 0;
    width: 100%;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

footer ul li {
    margin: 0 1em;
}

footer ul li a {
    color: white;
    text-decoration: none;
}

/* ----------------------------
   スマホ用メディアクエリ
---------------------------- */
@media (max-width: 600px) {
    .hero-section {
        height: 20px;
        margin-top: 20px;
    }

    .slide {
        display: flex;
        justify-content: center;
        margin-top: 900px;
    }

    .slide img {
        width: 90%;
        height: auto;
        position: relative;
        top: 9000px;
    }

    .main-content {
        flex-direction: column;
        padding: 1em;
    }

    .sidebar {
        width: 80%;
    }
}