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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #1C1C1C;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #F5F5F5;
    animation: fadeInDown 0.6s ease-out;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 25px;
    animation: fadeIn 0.8s ease-out;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.08em;
    color: #FFFFFF;
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #D4AF37;
    letter-spacing: 0.03em;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    height: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out 0.2s both;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.progress-fill {
    background: linear-gradient(90deg, #D4AF37 0%, #F5E6B8 100%);
    height: 100%;
    width: 10%;
    border-radius: 50px;
    transition: width 0.4s ease;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.question-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    animation: slideInUp 0.5s ease-out;
    border: 1px solid #E5E5E5;
}

.question-card.active {
    display: block;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #D4AF37;
    letter-spacing: 0.03em;
}

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

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FAFAFA;
}

.option-label:hover {
    border-color: #D4AF37;
    background: #FFFEF8;
    transform: translateX(5px);
}

.option-label input[type="radio"] {
    margin-right: 15px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #D4AF37;
    flex-shrink: 0;
}

.option-label input[type="radio"]:checked + .option-text {
    color: #1C1C1C;
    font-weight: 600;
}

.option-label:has(input[type="radio"]:checked) {
    border-color: #D4AF37;
    background: #FFFEF8;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.2);
}

.option-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.7;
    color: #333333;
    letter-spacing: 0.02em;
}

.custom-input-label {
    background: #FFF9E6 !important;
    border-color: #D4AF37 !important;
}

.custom-input-wrapper {
    margin-top: 15px;
    animation: slideDown 0.3s ease-out;
}

.custom-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #D4AF37;
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    min-height: 80px;
    color: #333333;
    background: #FFFEF8;
}

.custom-textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.05em;
}

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

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #D4AF37;
    color: #1C1C1C;
}

.btn-primary:hover {
    background: #E5C158;
}

.btn-secondary {
    background: #4A4A4A;
    color: white;
}

.btn-secondary:hover {
    background: #5A5A5A;
}

.btn-success {
    background: #D4AF37;
    color: #1C1C1C;
    font-size: 1.15rem;
    padding: 18px 50px;
}

.btn-success:hover {
    background: #E5C158;
}

.result-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.6s ease-out;
    border: 1px solid #E5E5E5;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1C1C1C;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #D4AF37;
    letter-spacing: 0.03em;
}

.result-content {
    background: #FAFAFA;
    padding: 30px;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 2;
    color: #333333;
    margin-bottom: 30px;
    border: 1px solid #E0E0E0;
    white-space: pre-wrap;
    letter-spacing: 0.02em;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.copy-message {
    text-align: center;
    color: #D4AF37;
    font-weight: 600;
    margin-top: 15px;
    font-size: 1.1rem;
    animation: fadeIn 0.3s ease-out;
}

/* アニメーション */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .logo {
        width: 100px;
        margin-bottom: 20px;
    }

    .main-title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .question-card {
        padding: 25px;
    }

    .question-title {
        font-size: 1.2rem;
    }

    .option-label {
        padding: 15px;
    }

    .option-text {
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .btn-success {
        padding: 15px 40px;
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .result-section {
        padding: 25px;
    }

    .result-content {
        padding: 20px;
        font-size: 0.95rem;
    }
}