/* テンプレート37: インタラクティブ・アニメーション付き */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* ========================================
   ヘッダー（スクロール時に変化）
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
}

.site-header.scrolled {
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.5);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.site-header.scrolled .logo {
    font-size: 1.3rem;
}

/* デスクトップナビ */
.desktop-nav {
    display: flex;
}

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

.desktop-nav a {
    display: block;
    padding: 12px 18px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.desktop-nav a:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* モバイルナビ */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    padding: 100px 30px 40px;
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.mobile-nav a:hover {
    color: #fff;
    padding-left: 10px;
}

/* ========================================
   パララックスヒーロー
======================================== */
.hero-section {
    margin-top: 80px;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/banner_bg.jpg');
    background-size: cover;
    background-position: center 0;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* フェードインアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.2s; }
.fade-in.delay-2 { transition-delay: 0.4s; }
.fade-in.delay-3 { transition-delay: 0.6s; }

/* コンテンツボックス */
.content-box {
    background: #fff;
    border-radius: 20px;
    padding: 55px 65px;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.1);
    margin-bottom: 50px;
}

.content-box h2 {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.content-box p {
    margin-bottom: 18px;
    color: #555;
}

/* 画像（遅延読み込み風） */
.lazy-image {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.lazy-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.content-image {
    text-align: center;
    margin: 35px 0;
}

.content-image img {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

/* ========================================
   統計セクション（カウントアップ）
======================================== */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    margin: 50px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.count-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   アコーディオン
======================================== */
.accordion {
    margin: 40px 0;
}

.accordion-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: #667eea;
    transition: all 0.3s;
}

.accordion-icon::before {
    width: 100%;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.accordion-icon::after {
    width: 3px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.accordion-item.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    display: none;
    padding: 0 25px 20px;
    color: #666;
}

/* ========================================
   トップへ戻るボタン
======================================== */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* ========================================
   フッター
======================================== */
.site-footer {
    background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
    color: rgba(255,255,255,0.7);
    padding: 50px 30px;
}

.footer-nav {
    max-width: 1000px;
    margin: 0 auto 30px;
    padding-bottom: 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: 20px;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-nav a:hover {
    color: #667eea;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
}

.footer-copyright p {
    color: rgba(255,255,255,0.5);
    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: #667eea;
    font-size: 0.7rem;
}

.sitemap-list a {
    color: #667eea;
    text-decoration: none;
}

.sitemap-list a:hover {
    color: #764ba2;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .count-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero-section {
        height: 400px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .content-box {
        padding: 35px 25px;
    }
    
    .content-box h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
