/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* プログレスバー */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    width: 0%;
    transition: width 0.3s ease;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: bounceIn 1s ease-out;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* アニメーション */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* イントロセクション */
.intro-section {
    background: white;
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.character-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.character {
    text-align: center;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.character:hover {
    transform: translateY(-10px);
    animation: pulse 0.6s ease-in-out;
}

.character-image {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.vs-text {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

.question-box {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
}

.question-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.start-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.start-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* ライフサイクルセクション */
.lifecycle-section {
    background: white;
    margin: 2rem 0;
    padding: 4rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.beetle-section {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.human-section {
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8c0 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* タイムライン */
.timeline-container {
    position: relative;
    margin: 3rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: scale(1.1);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #ff6b6b;
    border-radius: 50%;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: #ff6b6b;
    transform: scale(1.2);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.stage-icon {
    font-size: 2rem;
    margin-top: 0.5rem;
}

/* ステージ詳細 */
.stage-details {
    margin-top: 3rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.detail-card.active {
    transform: translateX(0);
    opacity: 1;
}

.detail-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* 次へボタン */
.next-btn {
    display: block;
    margin: 3rem auto 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 比較セクション */
.comparison-section {
    background: white;
    margin: 2rem 0;
    padding: 4rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.comparison-card {
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-10px);
}

.beetle-card {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
}

.human-card {
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8c0 100%);
}

.time-bar {
    display: flex;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.time-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.larva-time {
    background: #ff6b6b;
    flex: 8;
}

.adult-time {
    background: #4ecdc4;
    flex: 2;
}

.child-time {
    background: #45b7d1;
    flex: 18;
}

.adult-human-time {
    background: #96ceb4;
    flex: 50;
}

.conclusion-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
}

.conclusion-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* クイズセクション */
.quiz-section {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    margin: 2rem 0;
    padding: 4rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-question {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.quiz-option.correct {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.quiz-option.wrong {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.quiz-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.quiz-result.correct {
    background: #d4edda;
    color: #155724;
}

.quiz-result.wrong {
    background: #f8d7da;
    color: #721c24;
}

.quiz-final {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.celebration {
    font-size: 3rem;
    margin: 1rem 0;
    animation: pulse 1s infinite;
}

/* フッター */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-icons {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.footer-icons i {
    margin: 0 1rem;
    color: #ff6b6b;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .character-intro {
        flex-direction: column;
        gap: 1rem;
    }
    
    .vs-text {
        font-size: 1.5rem;
    }
    
    .timeline {
        flex-direction: column;
        gap: 2rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .time-bar {
        flex-direction: column;
        height: auto;
    }
    
    .time-segment {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .character {
        padding: 1rem;
    }
    
    .character-image {
        font-size: 3rem;
    }
}

