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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #f8e8f2 0%, #f5dfe8 50%, #f0d5e0 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.diagnostic-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    padding: 40px;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

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

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #f0f0f0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E6033D 0%, #673BA0 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 15px;
    right: 40px;
    font-size: 14px;
    color: #666;
}

.start-screen {
    text-align: center;
    padding: 20px 0;
}

.main-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #E6033D 0%, #673BA0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.features {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
}

.auto-start-info {
    text-align: center;
    margin-top: 20px;
}

.auto-start-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.countdown-bar {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.countdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #E6033D 0%, #673BA0 100%);
    width: 0%;
    animation: countdown 3s linear forwards;
}

@keyframes countdown {
    from { width: 0%; }
    to { width: 100%; }
}

.fade-out {
    animation: fadeOut 0.8s ease-out forwards;
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.question-container {
    animation: slideIn 0.3s ease-out;
}

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

.question-number {
    font-size: 16px;
    color: #E6033D;
    margin-bottom: 20px;
}

.question-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.answer-option {
    background: #f8f8f8;
    border: 2px solid transparent;
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    color: #333;
    text-align: left;
}

.answer-option:hover {
    background: #fff;
    border-color: #E6033D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 3, 61, 0.2);
}

.result-container {
    animation: fadeIn 0.5s ease-out;
}

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

.beginner-friendly {
    text-align: center;
    margin-bottom: 30px;
}

.beginner-text {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.result-header h2 {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.result-subtitle {
    font-size: 16px;
    color: #999;
}

.result-card {
    background: linear-gradient(135deg, #E6033D 0%, #673BA0 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.result-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.result-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.result-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.detail-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.detail-item h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.detail-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-item ul li {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.2;
}

.detail-item ul li:before {
    content: "";
}

.detail-item p {
    margin: 0;
    line-height: 1.4;
}

.detail-item.income p {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.detail-item.suitable p {
    font-size: 14px;
    line-height: 1.4;
}

.cta-section {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.cta-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.cta-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.knowledge-gap {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #E6033D;
}

.gap-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

.seminar-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    border: 2px solid #E6033D;
}

.seminar-stats {
    text-align: center;
    color: #E6033D;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 20px;
    background: rgba(230, 3, 61, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
}

.seminar-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.seminar-stats {
    text-align: center;
    margin-bottom: 20px;
}

.seminar-benefits {
    list-style: none;
    margin-bottom: 30px;
    text-align: center;
}

.seminar-benefits li {
    padding: 10px 0;
    padding-left: 0;
    position: relative;
    color: #666;
    text-align: center;
}

.seminar-benefits li:before {
    content: "✓ ";
    color: #E6033D;
    font-weight: bold;
    position: static;
}

.cta-button {
    display: block;
    background: linear-gradient(135deg, #E6033D 0%, #673BA0 100%);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.2), 0 0 15px rgba(230, 3, 61, 0.1); }
    50% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(230, 3, 61, 0.3); }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 45px rgba(230, 3, 61, 0.4), 0 10px 20px rgba(230, 3, 61, 0.3);
    animation: sparkle-hover 1s infinite;
}

@keyframes sparkle-hover {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 45px rgba(230, 3, 61, 0.4), 0 10px 20px rgba(230, 3, 61, 0.3);
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 50px rgba(255, 255, 255, 0.8), 0 0 75px rgba(230, 3, 61, 0.6), 0 15px 30px rgba(230, 3, 61, 0.4);
    }
}

.cta-note {
    text-align: center;
    font-size: 14px;
    color: #999;
}

.retry-button {
    background: none;
    border: 2px solid #E6033D;
    color: #E6033D;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: all 0.2s;
}

.retry-button:hover {
    background: #E6033D;
    color: white;
}

@media (max-width: 600px) {
    .diagnostic-container {
        padding: 30px 20px;
    }

    .main-title {
        font-size: 28px;
    }

    .features {
        flex-direction: column;
        gap: 20px;
    }

    .result-details {
        gap: 12px;
    }

    .detail-item {
        padding: 15px;
    }

    .detail-item ul li {
        font-size: 12px;
        padding: 5px 10px;
    }

    .detail-item p {
        font-size: 13px;
    }
}