/* テンプレート31: アースカラー - ナチュラル系 */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

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

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #4e342e;
    background: linear-gradient(180deg, #efebe9 0%, #d7ccc8 50%, #efebe9 100%);
    min-height: 100vh;
}

.layout-wrapper { display: flex; max-width: 1200px; margin: 0 auto; padding: 50px 30px; gap: 40px; }

.main-content { flex: 1; }

.content-box {
    background: linear-gradient(180deg, #fffaf5 0%, #fff8f0 100%);
    border-radius: 20px;
    padding: 55px 60px;
    box-shadow: 0 10px 40px rgba(93, 64, 55, 0.1);
    border: 2px solid #bcaaa4;
}

.content-box h1 {
    font-size: 1.9rem;
    color: #5d4037;
    margin-bottom: 30px;
    padding-bottom: 18px;
    border-bottom: 3px solid #8d6e63;
}

.single-image { text-align: center; margin: 30px 0; }
.single-image img { max-width: 100%; height: auto; max-height: 350px; border-radius: 15px; box-shadow: 0 8px 25px rgba(93, 64, 55, 0.15); border: 3px solid #a1887f; }

.text-section { margin-bottom: 30px; }
.text-section h2 { font-size: 1.35rem; color: #6d4c41; margin-bottom: 18px; padding: 10px 18px; background: linear-gradient(90deg, #d7ccc8 0%, transparent 100%); border-radius: 8px; }
.text-section p { margin-bottom: 16px; color: #5d4037; }

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #6d4c41 0%, #5d4037 50%, #4e342e 100%);
    border-radius: 20px;
    padding: 35px 25px;
    color: #fff;
    height: fit-content;
    position: sticky;
    top: 30px;
}

.sidebar-logo { font-size: 1.3rem; font-weight: 700; text-align: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); margin-bottom: 20px; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav a { display: block; padding: 14px 18px; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; transition: all 0.3s; border-radius: 8px; margin-bottom: 5px; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.15); color: #fff; }

.site-footer { text-align: center; padding: 40px; color: #8d6e63; font-size: 0.85rem; }
.site-footer p { color: #8d6e63; margin: 0; }

.sitemap-list { list-style: none; padding: 0; }
.sitemap-list li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.sitemap-list li::before { content: '●'; position: absolute; left: 0; color: #8d6e63; font-size: 0.6rem; }
.sitemap-list a { color: #5d4037; text-decoration: none; }
.sitemap-list a:hover { color: #8d6e63; }

@media (max-width: 900px) {
    .layout-wrapper { flex-direction: column; padding: 30px 20px; }
    .sidebar { width: 100%; position: static; }
    .sidebar-nav ul { display: flex; flex-wrap: wrap; justify-content: center; }
    .sidebar-nav a { padding: 10px 12px; font-size: 0.85rem; }
    .content-box { padding: 35px 28px; }
}

/* アニメーション追加 */
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.back-to-top {
    display: none; position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; background: linear-gradient(135deg, #6d4c41 0%, #4e342e 100%);
    color: #fff; border: none; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; box-shadow: 0 5px 20px rgba(78, 52, 46, 0.4);
    transition: all 0.3s; z-index: 998;
}
.back-to-top:hover { transform: translateY(-5px); }

.single-image img { transition: transform 0.4s ease; }
.single-image img:hover { transform: scale(1.02); }

.mobile-toggle {
    display: none; position: fixed; top: 20px; right: 20px; z-index: 1001;
    width: 45px; height: 45px; background: #5d4037; border: none;
    border-radius: 50%; color: #fff; font-size: 1.3rem; cursor: pointer;
}

@media (max-width: 900px) {
    .mobile-toggle { display: block; }
    .sidebar { position: fixed; top: 0; right: -300px; transition: right 0.4s; z-index: 1000; }
    .sidebar.show { right: 0; }
    .layout-wrapper { display: block; }
    .main-content { margin: 0; }
}
