/* 全体のスタイル */
:root {
    --primary-color: #0a0a2e;
    --secondary-color: #1a1a3a;
    --accent-color: #d4af37;
    --text-color: #ffffff;
    --dark-text: #333333;
    --light-text: #cccccc;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--accent-color);
}

/* スクリーン共通スタイル */
.screen {
    display: none;
    padding: 30px;
    text-align: center;
}

.screen.active {
    display: block;
}

/* スタート画面 */
.title-container {
    margin-bottom: 30px;
    position: relative;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--accent-color);
    line-height: 1.2;
}

.sub-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.intro-text {
    margin-bottom: 40px;
    line-height: 1.6;
}

.intro-text p {
    margin-bottom: 15px;
}

.note {
    font-size: 0.9rem;
    color: var(--light-text);
    font-style: italic;
}

/* ボタン */
.btn {
    background: linear-gradient(135deg, var(--accent-color), #b08a1a);
    color: var(--dark-text);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn:active {
    transform: translateY(1px);
}

/* 質問画面 */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

#question-counter {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: right;
}

#question-container {
    margin-bottom: 30px;
}

#question-text {
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option:hover {
    background-color: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-color);
}

.option.selected {
    background-color: rgba(212, 175, 55, 0.3);
    border-color: var(--accent-color);
}

/* 結果画面 */
.result-container {
    padding: 20px;
}

.result-header {
    margin-bottom: 30px;
}

.battle-power {
    background: linear-gradient(135deg, #1a1a3a, #0a0a2e);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.power-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

#power-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.result-type {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.result-description {
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
}

.social-share {
    margin-bottom: 30px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.twitter-link {
    display: inline-block;
    color: #1DA1F2;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.twitter-link:hover {
    color: #0c85d0;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        border-radius: 10px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .sub-title {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
    
    #question-text {
        font-size: 1.2rem;
    }
    
    .result-type {
        font-size: 1.8rem;
    }
    
    #power-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .sub-title {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    #question-text {
        font-size: 1.1rem;
    }
    
    .option {
        padding: 12px;
    }
    
    .result-type {
        font-size: 1.5rem;
    }
    
    #power-value {
        font-size: 2.2rem;
    }
}
