/* 共通のアンケートスタイル */

/* リセット & 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ヘッダー共通 */
.survey-header {
    text-align: center;
    margin-bottom: 40px;
}

.survey-title {
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.survey-description {
    font-size: 1rem;
    color: #999;
    margin-bottom: 30px;
}

/* プログレスバー共通 */
.progress-section {
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-text {
    font-size: 0.9rem;
    color: #999;
}

.progress-counter {
    font-size: 1.1rem;
    color: #00ff88;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 100%);
    transition: width 0.5s ease;
    width: 10%;
}

/* 質問セクション共通 */
.question-container {
    position: relative;
    min-height: 350px;
    height: auto;
}

.question {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 350px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.question.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.question.prev {
    transform: translateX(-50px);
}

.question.next {
    transform: translateX(50px);
}

.question-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

/* ラジオボタン共通 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.radio-option:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.radio-option.selected {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.radio-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: #00ff88;
}

.radio-label {
    font-size: 1.1rem;
    color: #ffffff;
    cursor: pointer;
}

/* ナビゲーション共通 */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    clear: both;
}

.nav-btn {
    padding: 15px 30px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 0;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nav-btn.primary {
    background: rgba(0, 255, 136, 0.2);
    border-color: #00ff88;
}

/* 完了画面共通 */
.completion-screen {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.completion-screen.active {
    display: block;
}

.completion-icon {
    font-size: 4rem;
    color: #00ff88;
    margin-bottom: 30px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.completion-title {
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 20px;
    font-weight: 600;
}

.completion-text {
    font-size: 1.1rem;
    color: #999;
    margin-bottom: 30px;
}

/* ローディング共通 */
.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #00ff88;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* レスポンシブ共通 */
@media (max-width: 768px) {
    .survey-title {
        font-size: 1.8rem;
    }

    .question-container {
        min-height: 200px;
    }

    .question {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .question-title {
        font-size: 1.3rem;
    }
}