/* ========================================
   基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ========================================
   画面の切り替え
======================================== */
.screen {
    display: none; /* 最初は全ての画面を非表示 */
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: block; /* activeクラスがついた画面だけ表示 */
}

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

/* ========================================
   スタート画面
======================================== */
#start-screen h1 {
    font-size: 2.5rem;
    color: #667eea;
    text-align: center;
    margin-bottom: 20px;
}

#start-screen p {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    margin-bottom: 30px;
}

/* ========================================
   ボタン
======================================== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    transition: transform 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #5a6268;
}

/* ========================================
   質問画面
======================================== */

/* プログレスバー */
.progress-bar {
    background: #e0e0e0;
    height: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 10%; /* JavaScriptで動的に変更 */
    transition: width 0.5s ease;
}

/* 質問番号 */
.question-number {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* 質問文 */
#question-text {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

/* 選択肢 */
.choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.choice-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 20px;
    font-size: 1.1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.choice-btn:hover {
    background: #667eea;
    color: white;
    transform: translateX(10px);
}

/* 戻るボタン */
.btn-back {
    background: transparent;
    border: 2px solid #999;
    color: #999;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #999;
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   結果画面
======================================== */
#result-screen h1 {
    font-size: 2rem;
    color: #667eea;
    text-align: center;
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

#result-title {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* シャーシ画像 */
.result-image {
    text-align: center;
    margin: 20px 0;
}

.result-image img {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ラジコンあるある */
.rc-trivia {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.rc-trivia p {
    margin: 8px 0;
    font-size: 1rem;
    color: #333;
}

.rc-trivia strong {
    color: #667eea;
}

#result-description {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 20px;
}

.result-details h3 {
    font-size: 1.2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.result-details ul {
    list-style: none;
    padding-left: 0;
}

.result-details li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.result-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* シェアボタン */
.share-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.share-buttons h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.btn-share {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.3s ease;
}

.btn-share:hover {
    transform: translateY(-2px);
}

#share-x {
    background: #1DA1F2;
}

#share-line {
    background: #00B900;
}

#copy-url {
    background: #6c757d;
}

/* ========================================
   スマホ対応
======================================== */
@media (max-width: 600px) {
    .screen {
        padding: 20px;
    }
    
    #start-screen h1 {
        font-size: 2rem;
    }
    
    #question-text {
        font-size: 1.2rem;
    }
    
    .choice-btn {
        font-size: 1rem;
        padding: 15px;
    }
    
    .result-image img {
        width: 100%;
        max-width: 100%;
    }
}
