/* テンプレート24: 左固定サイドバー + ライムグリーン系 */
@import url('https://fonts.googleapis.com/css2?family=Sawarabi+Gothic&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sawarabi Gothic', 'Yu Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #1f2937;
    background: linear-gradient(180deg, #ecfccb 0%, #d9f99d 100%);
    min-height: 100vh;
}

/* 左固定サイドバー */
.fixed-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #4d7c0f 0%, #365314 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(54, 83, 20, 0.2);
    z-index: 1000;
}

.sidebar-header {
    padding: 40px 25px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.sidebar-nav {
    flex: 1;
    padding: 25px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 3px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.sidebar-nav a.active {
    border-left: 4px solid #a3e635;
    padding-left: 21px;
}

.nav-icon {
    font-size: 0.6rem;
    margin-right: 12px;
    color: #a3e635;
}

.sidebar-footer {
    padding: 20px 25px;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* メインコンテンツ */
.main-content {
    margin-left: 280px;
    padding: 50px;
    min-height: 100vh;
}

.content-box {
    background: #fff;
    border-radius: 20px;
    padding: 60px 70px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 900px;
}

.content-box h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #4d7c0f;
    margin-bottom: 35px;
    text-align: center;
}

.content-box h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #365314;
    margin-bottom: 18px;
    padding: 12px 18px;
    background: linear-gradient(90deg, #f7fee7 0%, transparent 100%);
    border-radius: 8px;
}

/* 画像スタイル（上部・下部） */
.top-image,
.bottom-image {
    margin: 35px 0;
    text-align: center;
}

.top-image img,
.bottom-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.top-image figcaption,
.bottom-image figcaption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #6b7280;
}

.text-section {
    margin-bottom: 35px;
}

.text-section p {
    margin-bottom: 18px;
    text-align: justify;
}

.text-section.last {
    margin-bottom: 0;
}

.content-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    color: #6b7280;
    font-size: 0.85rem;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .fixed-sidebar {
        width: 240px;
    }
    .main-content {
        margin-left: 240px;
        padding: 35px;
    }
    .content-box {
        padding: 45px 50px;
    }
}

@media (max-width: 768px) {
    .fixed-sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .sidebar-header {
        padding: 25px 20px 20px;
    }
    
    .sidebar-nav {
        padding: 15px 0;
    }
    
    .sidebar-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 15px;
    }
    
    .sidebar-nav li {
        margin-bottom: 0;
    }
    
    .sidebar-nav a {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .sidebar-nav a.active {
        border-left: none;
        border-bottom: 3px solid #a3e635;
        padding-left: 14px;
    }
    
    .nav-icon {
        display: none;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 25px 20px;
    }
    
    .content-box {
        padding: 35px 28px;
        border-radius: 16px;
    }
    
    .content-box h1 {
        font-size: 1.7rem;
    }
    
    .content-box h2 {
        font-size: 1.25rem;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .content-box {
        padding: 28px 20px;
    }
    
    .content-box h1 {
        font-size: 1.5rem;
    }
}

/* サイトマップ */
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sitemap-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.sitemap-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.sitemap-list a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.sitemap-list a:hover {
    opacity: 0.7;
}
