/* テンプレート23: ヘッダーナビ + フッターナビ両方 + 赤系 */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;500;700&display=swap');

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

body {
    font-family: 'M PLUS 1p', 'Hiragino Sans', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #374151;
    background-color: #fef2f2;
}

/* ヘッダー */
.site-header {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    padding: 20px 0;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

.header-nav a {
    display: block;
    padding: 22px 18px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: #fca5a5;
}

/* メインコンテンツ */
.main-content {
    padding: 50px 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
}

.content-box {
    background: #fff;
    border-radius: 16px;
    padding: 60px 70px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.content-box h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 3px solid #dc2626;
}

.content-box h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #991b1b;
    margin-bottom: 18px;
    padding-left: 15px;
    border-left: 4px solid #dc2626;
}

/* 画像floatレイアウト */
.content-with-image {
    overflow: hidden;
    margin-bottom: 40px;
}

.float-image {
    float: right;
    width: 340px;
    margin: 0 0 25px 35px;
}

.float-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.float-image figcaption {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #6b7280;
}

.text-content section {
    margin-bottom: 30px;
}

.text-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.full-width-section {
    clear: both;
    padding-top: 30px;
    border-top: 1px solid #fee2e2;
}

.full-width-section p {
    margin-bottom: 16px;
    text-align: justify;
}

/* フッター */
.site-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #fff;
    padding-top: 40px;
}

.footer-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-nav a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.footer-nav a:hover {
    color: #fff;
    background: rgba(220, 38, 38, 0.3);
}

.footer-info {
    text-align: center;
    padding: 25px 30px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* レスポンシブ */
@media (max-width: 900px) {
    .float-image {
        width: 280px;
        margin-left: 25px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .logo {
        padding: 10px 0;
    }
    
    .header-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-nav a {
        padding: 12px 12px;
        font-size: 0.8rem;
    }
    
    .content-box {
        padding: 35px 28px;
    }
    
    .content-box h1 {
        font-size: 1.7rem;
    }
    
    .float-image {
        float: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .footer-nav ul {
        gap: 5px;
    }
    
    .footer-nav a {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

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

/* サイトマップ */
.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;
}
