/* ========================================
   防災推進協議会 スタイルシート（紺版）
   ======================================== */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== HEADER ========== */
.header {
    background: #ffffff;
    border-bottom: 3px solid #1a3a52;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #1a3a52;
    font-weight: 700;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    letter-spacing: 0.05em;
    color: #1a3a52;
    display: inline;
}

/* ========== NAVIGATION ========== */
.global-nav {
    background: #1a3a52;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-link {
    display: block;
    padding: 14px 24px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: #d4af37;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.5) 0%, rgba(26, 58, 82, 0.3) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px;
}

.hero-content {
    text-align: left;
    color: #ffffff;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    border-bottom: 1px solid #e8e8e8;
}

.section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a3a52;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
}

/* ========== ABOUT SECTION ========== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ========== ACTIVITIES SECTION ========== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.activity-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #1a3a52;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.activity-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 12px;
}

.activity-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.activity-meta {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.activity-meta li {
    padding: 2px 0;
}

/* ========== PARTNERSHIPS SECTION ========== */
.partnerships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partnership-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.partnership-card:hover {
    border-color: #1a3a52;
    box-shadow: 0 8px 16px rgba(26, 58, 82, 0.1);
}

.partnership-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 12px;
}

.partnership-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

.partnership-link {
    display: inline-block;
    padding: 10px 16px;
    background: #1a3a52;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.partnership-link:hover {
    background: #d4af37;
    color: #1a3a52;
}

/* ========== FOOTER ========== */
.footer {
    background: #1a3a52;
    color: #ffffff;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.footer-text {
    font-size: 12px;
    color: #b8c5d6;
}

/* ========== SCROLL TO TOP BUTTON ========== */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1a3a52;
    color: #ffffff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#scrollToTop:hover {
    background: #d4af37;
    color: #1a3a52;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-container {
        padding: 12px 16px;
    }

    .logo {
        gap: 10px;
        font-size: 16px;
    }

    .logo-image {
        width: 48px;
        height: 48px;
    }

    .nav-list {
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 12px;
    }

    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .activities-grid,
    .partnerships-grid {
        gap: 20px;
    }

    .activity-card,
    .partnership-card {
        padding: 20px;
    }

    #scrollToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 8px;
        font-size: 13px;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        display: block;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .activities-grid,
    .partnerships-grid {
        grid-template-columns: 1fr;
    }

    .nav-link {
        padding: 10px 12px;
        font-size: 11px;
    }
}
