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

body {
    font-family: 'Noto Sans JP', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.logo-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.company-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.company-logo:hover {
    opacity: 1;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.screen {
    display: none;
    padding: 40px;
    min-height: 500px;
}

.screen.active {
    display: block;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

h2 {
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: normal;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
}

input[type="radio"] {
    margin-right: 8px;
}

.btn {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    margin: 0 auto;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn.secondary {
    background: #6c757d;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.question-container {
    text-align: center;
}

#question-number {
    font-size: 1.2rem;
    color: #3b82f6;
    margin-bottom: 10px;
}

#question-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.choices label {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-align: left;
}

.choices label:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.choices input[type="radio"]:checked + label,
.choices label:has(input[type="radio"]:checked) {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
}

.navigation {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.loading {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.status-bar {
    width: 300px;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.status-progress {
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 10px;
    width: 0%;
    animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.hidden {
    display: none;
}

.result-type {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border-radius: 15px;
}

.result-type h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
}

.result-type p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.score-breakdown {
    margin: 30px 0;
}

.score-breakdown h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.score-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-item span:last-child {
    font-weight: bold;
    color: #3b82f6;
    font-size: 1.2rem;
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
    }
    
    .screen {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .choices {
        gap: 10px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .scores {
        grid-template-columns: 1fr;
    }
    
    .logo-container {
        top: 10px;
        right: 10px;
    }
    
    .company-logo {
        height: 30px;
    }
}