/* テンプレート44: ドキュメント/ヘルプサイト風 */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Source Sans Pro', 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.8; color: #333; background: #f8f9fa; }

.site-header { background: #fff; border-bottom: 1px solid #dee2e6; padding: 15px 30px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 1.3rem; font-weight: 700; color: #0d6efd; }
.header-search { display: flex; align-items: center; background: #f1f3f5; border-radius: 6px; padding: 8px 15px; }
.header-search input { border: none; background: transparent; outline: none; width: 200px; }
.header-search button { border: none; background: transparent; color: #6c757d; cursor: pointer; }

.breadcrumb { background: #e9ecef; padding: 12px 30px; font-size: 0.9rem; }
.breadcrumb a { color: #0d6efd; text-decoration: none; }
.breadcrumb span { color: #6c757d; margin: 0 8px; }

.layout-wrapper { display: flex; max-width: 1400px; margin: 0 auto; }

.doc-sidebar { width: 280px; background: #fff; border-right: 1px solid #dee2e6; min-height: calc(100vh - 120px); padding: 30px 0; position: sticky; top: 60px; height: fit-content; }
.sidebar-section { margin-bottom: 25px; padding: 0 25px; }
.sidebar-title { font-size: 0.75rem; font-weight: 700; color: #6c757d; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav a { display: block; padding: 8px 0; color: #495057; text-decoration: none; font-size: 0.95rem; transition: all 0.2s; border-left: 3px solid transparent; padding-left: 15px; margin-left: -15px; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: #0d6efd; border-left-color: #0d6efd; background: rgba(13, 110, 253, 0.05); }

.doc-content { flex: 1; padding: 40px 50px; max-width: 900px; }

.content-box { background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 30px; }
.content-box h1 { font-size: 2rem; color: #212529; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #0d6efd; }
.content-box h2 { font-size: 1.4rem; color: #212529; margin: 30px 0 15px; }
.content-box p { color: #495057; margin-bottom: 15px; }
.content-box code { background: #f1f3f5; padding: 2px 8px; border-radius: 4px; font-size: 0.9rem; color: #d63384; }

.info-box { background: #cfe2ff; border-left: 4px solid #0d6efd; padding: 20px; border-radius: 0 8px 8px 0; margin: 25px 0; }
.info-box p { color: #084298; margin: 0; }

.single-image { margin: 25px 0; }
.single-image img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid #dee2e6; }

/* 目次 */
.toc { background: #f8f9fa; border-radius: 8px; padding: 20px 25px; margin-bottom: 30px; }
.toc-title { font-size: 0.9rem; font-weight: 700; color: #495057; margin-bottom: 12px; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 8px; }
.toc a { color: #0d6efd; text-decoration: none; font-size: 0.95rem; }
.toc a:hover { text-decoration: underline; }

.site-footer { background: #212529; color: rgba(255,255,255,0.6); padding: 30px; text-align: center; font-size: 0.9rem; }

.back-to-top { display: none; position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: #0d6efd; color: #fff; border: none; border-radius: 8px; cursor: pointer; z-index: 998; }

.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.5s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.sitemap-list { list-style: none; }
.sitemap-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.sitemap-list li::before { content: '📄'; position: absolute; left: 0; font-size: 0.8rem; }
.sitemap-list a { color: #0d6efd; text-decoration: none; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; }

@media (max-width: 900px) {
    .doc-sidebar { display: none; position: fixed; top: 60px; left: 0; width: 280px; height: calc(100vh - 60px); z-index: 999; transform: translateX(-100%); transition: transform 0.3s; }
    .doc-sidebar.open { display: block; transform: translateX(0); }
    .mobile-menu-btn { display: block; }
    .doc-content { padding: 30px 20px; }
    .content-box { padding: 25px 20px; }
}
