/* ========================================
   KSPPRO Website - Common Header/Nav/Footer Styles
   ======================================== */

/* Reset for common elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #8B4513;
    letter-spacing: 2px;
    font-family: 'Noto Serif JP', 'Times New Roman', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-family: 'Noto Serif JP', 'Times New Roman', serif;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #8B4513;
}

/* Hamburger Menu (for mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* パララックス共通スタイル */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    margin: 0;
    width: 100%;
}

.parallax-overlay {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(139, 69, 19, 0.4));
}

.parallax-content {
    display: flex;
    justify-content: center;
}

.parallax-card {
    background: rgba(255,255,255,0.8);
    padding: 60px;
    border-radius: 0;
    backdrop-filter: blur(8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    text-align: center;
}

.parallax-card-large {
    max-width: 900px;
}

.parallax-card-medium {
    max-width: 800px;
}

.parallax-card-small {
    max-width: 700px;
}

/* セクションタイトル共通スタイル */
.section-title {
    text-align: center;
    color: #8B4513;
    font-size: 32px;
    margin-bottom: 30px;
    font-family: 'Noto Serif JP', 'Times New Roman', serif;
}

.section-subtitle {
    text-align: center;
    color: #8B4513;
    font-size: 24px;
    margin: 30px 0;
    font-family: 'Noto Serif JP', 'Times New Roman', serif;
}

/* 教育サービス一覧スタイル */
.education-services-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-services-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.2);
}

.education-services-list li:last-child {
    border-bottom: none;
}

.education-services-list strong {
    color: #8B4513;
}

/* 統計グリッドスタイル */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 3em;
    color: #8B4513;
    font-weight: bold;
}

.stat-label {
    color: #666;
    margin-top: 10px;
}

/* 地域分布バースタイル */
.region-bars {
    max-width: 800px;
    margin: 0 auto;
}

.region-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #8B4513, #D2691E);
    width: 0%;
    transition: width 2s ease;
    position: relative;
    overflow: hidden;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
}

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

/* Responsive Design for Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
}

/* Ensure main content starts below fixed header */
main {
    margin-top: 80px;
}